rem: const kPrefContractID = "@mozilla.org/preferences;1"; const kPrefIID = Components.interfaces.nsIPref; const kPrefSvc = Components.classes[kPrefContractID].getService(kPrefIID); var showDialog = true;  try { showDialog = kPrefSvc.GetBoolPref("mail.compose.show_save_folder_dlg"); 
add: try{ showDialog = currentIdentity.showSaveMsgDlg; 
context: function DisplaySaveFolderDlg(folderURI){  const kPrefContractID = "@mozilla.org/preferences;1";  const kPrefIID = Components.interfaces.nsIPref;  const kPrefSvc = Components.classes[kPrefContractID].getService(kPrefIID);  var showDialog = true;    try {    showDialog = kPrefSvc.GetBoolPref("mail.compose.show_save_folder_dlg");  }//try  catch (e) {    return;  }//catch  if (showDialog){    var msgfolder = GetMsgFolderFromUri(folderURI);    if (!msgfolder)      return;		var checkbox = {value:0};    var SaveDlgTitle = gComposeMsgsBundle.getString("SaveDialogTitle");    var DlgMsg = gComposeMsgsBundle.getString("SaveDialogMsg");    var CheckMsg = gComposeMsgsBundle.getString("CheckMsg");    var newMessage = DlgMsg.replace(/@FolderName@/, msgfolder.name);    var SaveDlgMsg = newMessage.replace(/@HostName@/, msgfolder.hostname);    if (commonDialogsService)      commonDialogsService.AlertCheck(window, SaveDlgTitle, SaveDlgMsg, CheckMsg, checkbox);    else      window.alert(SaveDlgMsg);    try {          kPrefSvc.SetBoolPref("mail.compose.show_save_folder_dlg", !checkbox.value);    }//try    catch (e) {     return;    }//catch  }//if  return;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/bc6c0e45b72fcaf3d060cad061e85528d53860b9/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js