rem: AddMailOfflineObserver(); 
add: MailOfflineMgr.init(); 
context: function delayedOnLoadMessenger(){  pref.QueryInterface(Components.interfaces.nsIPrefBranch2);  pref.addObserver("mail.pane_config.dynamic", MailPrefObserver, false);  pref.addObserver("mail.showFolderPaneColumns", MailPrefObserver, false);  AddMailOfflineObserver();  CreateMailWindowGlobals();  accountCentralBox = document.getElementById("accountCentralBox");  GetMessagePane().collapsed = true;  verifyAccounts(null);      InitMsgWindow();  messenger.SetWindow(window, msgWindow);  InitializeDataSources();  InitPanes();  MigrateAttachmentDownloadStore();  MigrateJunkMailSettings();  MigrateFolderViews();  accountManager.setSpecialFolders();  accountManager.loadVirtualFolders();  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)  {    // filter our any feed urls that came in as arguments to the new window...    if (window.arguments.length && /^feed:/i.test(window.arguments[0] ))    {      var feedHandler = Components.classes["@mozilla.org/newsblog-feed-downloader;1"].getService(Components.interfaces.nsINewsBlogFeedDownloader);      if (feedHandler)        feedHandler.subscribeToFeed(window.arguments[0], null, msgWindow);      gStartFolderUri = null;    }    else      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;  }  #ifdef HAVE_SHELL_SERVICE  var nsIShellService = Components.interfaces.nsIShellService;  var shellService = Components.classes["@mozilla.org/mail/shell-service;1"].getService(nsIShellService);    // show the default client dialog only if we have at least one account,   // if we should check for the default client,   // and we aren't already the default for all of our recognized types (mail, news, rss)  if (accountManager.defaultAccount && shellService.shouldCheckDefaultClient       && !shellService.isDefaultClient(true, nsIShellService.MAIL | nsIShellService.NEWS | nsIShellService.RSS))    window.openDialog("chrome://messenger/content/defaultClientDialog.xul", "DefaultClient",                       "modal,centerscreen,chrome,resizable=no");#endif  setTimeout("loadStartFolder(gStartFolderUri);", 0);  // FIX ME - later we will be able to use onload from the overlay  OnLoadMsgHeaderPane();  gHaveLoadedMessage = false;  gNotifyDefaultInboxLoadedOnStartup = true;  //Set focus to the Thread Pane the first time the window is opened.  SetFocusThreadPane();    gFindBar.initFindBar();      // initialize the customizeDone method on the customizeable toolbar  var toolbox = document.getElementById("mail-toolbox");  toolbox.customizeDone = MailToolboxCustomizeDone;  var toolbarset = document.getElementById('customToolbars');  toolbox.toolbarset = toolbarset;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/112eb3c61f3751959441fb43cbe46e8ef204db63/msgMail3PaneWindow.js/buggy/mail/base/content/msgMail3PaneWindow.js