rem: SaveAsDraft(); 
add: SaveAsDraft(); 
context: function ComposeCanClose(){  if (!gPromptService) {    gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();    gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);  }  if (sendOrSaveOperationInProgress)  {      var result;      if (gPromptService)      {        var promptTitle = gComposeMsgsBundle.getString("quitComposeWindowTitle");        var promptMsg = gComposeMsgsBundle.getString("quitComposeWindowMessage");        var quitButtonLabel = gComposeMsgsBundle.getString("quitComposeWindowQuitButtonLabel");        var waitButtonLabel = gComposeMsgsBundle.getString("quitComposeWindowWaitButtonLabel");        result = {value:0};        gPromptService.confirmEx(window, promptTitle, promptMsg,          (gPromptService.BUTTON_TITLE_IS_STRING*gPromptService.BUTTON_POS_0) +          (gPromptService.BUTTON_TITLE_IS_STRING*gPromptService.BUTTON_POS_1),          waitButtonLabel, quitButtonLabel, null, null, {value:0}, result);        if (result.value == 1)          {            msgCompose.abort();            return true;          }        else           {            return false;          }      }  }	// Returns FALSE only if user cancels save action	if (contentChanged || msgCompose.bodyModified)	{		// call window.focus, since we need to pop up a dialog		// and therefore need to be visible (to prevent user confusion)		window.focus();		if (gPromptService)		{            result = {value:0};            gPromptService.confirmEx(window,                              gComposeMsgsBundle.getString("saveDlogTitle"),                              gComposeMsgsBundle.getString("saveDlogMessage"),                              (gPromptService.BUTTON_TITLE_SAVE * gPromptService.BUTTON_POS_0) +                              (gPromptService.BUTTON_TITLE_CANCEL * gPromptService.BUTTON_POS_1) +                              (gPromptService.BUTTON_TITLE_DONT_SAVE * gPromptService.BUTTON_POS_2),                              null, null, null,                              null, {value:0}, result);			if (result)			{				switch (result.value)				{					case 0: //Save                        if (LastToClose())                            NotifyQuitApplication();            gCloseWindowAfterSave = true;						SaveAsDraft();            return false;					case 1:	//Cancel						return false;					case 2:	//Don't Save						break;				}			}		}		msgCompose.bodyModified = false;		contentChanged = false;	}	return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/321184f9e318caa933671990d7acbcf552f629f0/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js