rem:  defaultServer.PerformBiff(); 
add:  if (defaultServer.type != "imap") defaultServer.PerformBiff(); 
context: function loadStartFolder(initialUri){    var defaultServer = null;    var startFolderUri = initialUri;    var isLoginAtStartUpEnabled = false;    var enabledNewMailCheckOnce = false;    var mailCheckOncePref = "mail.startup.enabledMailCheckOnce";    //First get default account    try    {        if(!startFolderUri)        {            var defaultAccount = accountManager.defaultAccount;            defaultServer = defaultAccount.incomingServer;            var rootFolder = defaultServer.RootFolder;            var rootMsgFolder = rootFolder.QueryInterface(Components.interfaces.nsIMsgFolder);            var folderResource = rootMsgFolder.QueryInterface(Components.interfaces.nsIRDFResource);            startFolderUri = folderResource.Value;            enabledNewMailCheckOnce = pref.GetBoolPref(mailCheckOncePref);            // 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 (!enabledNewMailCheckOnce)            {                pref.SetBoolPref(mailCheckOncePref, 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;                var resource = inboxFolder.QueryInterface(Components.interfaces.nsIRDFResource);                startFolderUri = resource.Value;            }        }        var startFolder = document.getElementById(startFolderUri);        //if it's not here we will have to make sure it's open.        if(!startFolder && startFolderUri && isLoginAtStartUpEnabled)        {            // Opens the twisty for the default account             OpenTwistyForServer(defaultServer);            startFolder = document.getElementById(startFolderUri);        }        var folderTree= GetFolderTree();        ChangeSelection(folderTree, startFolder);                        // only do this on startup, when we pass in null        if (!initialUri && isLoginAtStartUpEnabled)        {            // Perform biff on the server to check for new mail            defaultServer.PerformBiff();        }         // because the "open" state persists, we'll call        // PerformExpand() for all servers that are open at startup.        PerformExpandForAllOpenServers(folderTree);    }    catch(ex)    {        dump(ex);        dump('Exception in LoadStartFolder caused by no default account.  We know about this\n');    }    if (!initialUri)     {        MsgGetMessagesForAllServers(defaultServer);    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/9320c0bd745c27fe2dc0c9dbdd2568476dcdd0d6/msgMail3PaneWindow.js/buggy/mailnews/base/resources/content/msgMail3PaneWindow.js