rem: if (CheckForUnsentMessages()) { var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService); if (!ioService.offline) { InitPrompts(); InitServices();  if (gPromptService) { var buttonPressed = gPromptService.confirmEx(window, gOfflinePromptsBundle.getString('sendMessagesOfflineWindowTitle'), gOfflinePromptsBundle.getString('sendMessagesLabel'), gPromptService.BUTTON_TITLE_IS_STRING * (gPromptService.BUTTON_POS_0 + gPromptService.BUTTON_POS_1), gOfflinePromptsBundle.getString('sendMessagesSendButtonLabel'), gOfflinePromptsBundle.getString('sendMessagesNoSendButtonLabel'), null, null, {value:0}); if (buttonPressed == 0) SendUnsentMessages(); } } }  
context: function OnLoadMessenger(){  AddMailOfflineObserver();  CreateMailWindowGlobals();  Create3PaneGlobals();  AddToolBarPrefListener();  ShowHideToolBarButtons();  verifyAccounts(null);      HideAccountCentral();  InitMsgWindow();  messenger.SetWindow(window, msgWindow);  InitializeDataSources();  InitPanes();  accountManager.setSpecialFolders();  accountManager.addIncomingServerListener(gThreePaneIncomingServerListener);  AddToSession();  //need to add to session before trying to load start folder otherwise listeners aren't  //set up correctly.  // argument[0] --> folder uri  // argument[1] --> optional message key  // argument[2] --> optional email address; //will come from aim; needs to show msgs from buddy's email address    if ("arguments" in window)  {    gStartFolderUri = (window.arguments.length > 0) ? window.arguments[0]                                                    : null;    gStartMsgKey = (window.arguments.length > 1) ? window.arguments[1]                                                 : nsMsgKey_None;    gSearchEmailAddress = (window.arguments.length > 2) ? window.arguments[2]                                                        : null;  }  setTimeout("loadStartFolder(gStartFolderUri);", 0);  // FIX ME - later we will be able to use onload from the overlay  OnLoadMsgHeaderPane();  gHaveLoadedMessage = false;  gNotifyDefaultInboxLoadedOnStartup = true;  // fix for #168937.  now that we don't have a sidebar  // users who haven't moved the splitter will  // see it jump around  var messengerBox = document.getElementById("messengerBox");  if (!messengerBox.getAttribute("width")) {    messengerBox.setAttribute("width","500px");  }  if (CheckForUnsentMessages())  {    var ioService = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);    if (!ioService.offline)     {      InitPrompts();      InitServices();      if (gPromptService)       {        var buttonPressed = gPromptService.confirmEx(window,                             gOfflinePromptsBundle.getString('sendMessagesOfflineWindowTitle'),                             gOfflinePromptsBundle.getString('sendMessagesLabel'),                            gPromptService.BUTTON_TITLE_IS_STRING * (gPromptService.BUTTON_POS_0 +                               gPromptService.BUTTON_POS_1),                            gOfflinePromptsBundle.getString('sendMessagesSendButtonLabel'),                            gOfflinePromptsBundle.getString('sendMessagesNoSendButtonLabel'),                            null, null, {value:0});        if (buttonPressed == 0)           SendUnsentMessages();      }    }  }  //Set focus to the Thread Pane the first time the window is opened.  SetFocusThreadPane();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/bf416b583f7407545f9e9721a0b8c14250f79e56/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js