rem: if (MailOfflineMgr.shouldSendUnsentMessages()) 
add: if (MailOfflineMgr.isOnline() && MailOfflineMgr.shouldSendUnsentMessages()) 
context: function loadStartFolder(initialUri){    var folderTree = GetFolderTree();    var defaultServer = null;    var startFolderResource = null;    var isLoginAtStartUpEnabled = false;    //First get default account    try    {        if(initialUri)            startFolderResource = RDF.GetResource(initialUri);        else        {            var defaultAccount = accountManager.defaultAccount;            defaultServer = defaultAccount.incomingServer;            var rootMsgFolder = defaultServer.rootMsgFolder;            startFolderResource = rootMsgFolder.QueryInterface(Components.interfaces.nsIRDFResource);            // Enable checknew mail once by turning checkmail pref 'on' to bring             // all users to one plane. This allows all users to go to Inbox. User can             // always go to server settings panel and turn off "Check for new mail at startup"            if (!pref.getBoolPref(kMailCheckOncePrefName))            {                pref.setBoolPref(kMailCheckOncePrefName, true);                defaultServer.loginAtStartUp = true;            }            // Get the user pref to see if the login at startup is enabled for default account            isLoginAtStartUpEnabled = defaultServer.loginAtStartUp;            // Get Inbox only if when we have to login             if (isLoginAtStartUpEnabled)             {                //now find Inbox                var outNumFolders = new Object();                var inboxFolder = rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders);                 if (!inboxFolder) return;                startFolderResource = inboxFolder.QueryInterface(Components.interfaces.nsIRDFResource);            }        }        var startFolder = startFolderResource.QueryInterface(Components.interfaces.nsIMsgFolder);        // it is possible we were given an initial uri and we need to subscribe or try to add        // the folder. i.e. the user just clicked on a news folder they aren't subscribed to from a browser        // the news url comes in here.           // Perform biff on the server to check for new mail, except for imap        // or a pop3 account that is deferred or deferred to,        // or the case where initialUri is non-null (non-startup)        if (!initialUri && isLoginAtStartUpEnabled && gLoadStartFolder            && !defaultServer.isDeferredTo &&            defaultServer.rootFolder == defaultServer.rootMsgFolder)          defaultServer.PerformBiff(msgWindow);                SelectFolder(startFolder.URI);            }    catch(ex)    {      if (initialUri)      {        messenger.loadURL(window, initialUri);        return;      }      dump(ex);      dump('Exception in LoadStartFolder caused by no default account.  We know about this\n');    }        // if gLoadStartFolder is true, then we must have just created a POP3 account    // and we aren't supposed to initially download mail. (Bug #270743)    if (gLoadStartFolder)      MsgGetMessagesForAllServers(defaultServer);        // if appropriate, send unsent messages. This may end up prompting the user    if (MailOfflineMgr.shouldSendUnsentMessages())      SendUnsentMessages();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/0ca81fbae8b46edc1eedbdb97365e398f61ce2cf/msgMail3PaneWindow.js/clean/mail/base/content/msgMail3PaneWindow.js