rem: return false;  
add: { if (promptService) { var promptTitle = gComposeMsgsBundle.getString("quitComposeWindowTitle"); var promptMsg = gComposeMsgsBundle.getString("quitComposeWindowMessage"); if (promptService.confirm(window, promptTitle, promptMsg)) { msgCompose.Abort(); return true; } else { return false; } } } 
context: function ComposeCanClose(){  if (sendOrSaveOperationInProgress)    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 (promptService)		{            var result = {value:0};            promptService.confirmEx(window,                              gComposeMsgsBundle.getString("saveDlogTitle"),                              gComposeMsgsBundle.getString("saveDlogMessage"),                              (promptService.BUTTON_TITLE_SAVE * promptService.BUTTON_POS_0) +                              (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1),                              gComposeMsgsBundle.getString("saveDlogDontSaveBtn"),                              null, {value:0}, result);			if (result)			{				switch (result.value)				{					case 0: //Save                        if (LastToClose())                            NotifyQuitApplication();						SaveAsDraft();						break;					case 1:	//Cancel						return false;					case 2:	//Don't Save						break;				}			}		}		msgCompose.bodyModified = false;		contentChanged = false;	}	return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/a01b35f59b3bcfddada8087b53e2ba7f3517eb58/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js