add:  #ifdef HAVE_SHELL_SERVICE var nsIShellService = Components.interfaces.nsIShellService; var shellService = Components.classes["@mozilla.org/mail/shell-service;1"].getService(nsIShellService);     if (accountManager.defaultAccount && shellService.shouldCheckDefaultClient && !shellService.isDefaultClient(false, nsIShellService.MAIL | nsIShellService.NEWS | nsIShellService.RSS)) window.openDialog("chrome: "modal,centerscreen,chrome,resizable=no"); #endif 
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;  }  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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/8f592119bae8c045d0ffc019a5a90330386be71a/msgMail3PaneWindow.js/buggy/mail/base/content/msgMail3PaneWindow.js