rem:  var outNumFolders = new Object(); var inboxFolder = rootMsgFolder.getFoldersWithFlag(0x1000, 1, outNumFolders); if(!inboxFolder) return; 
add: var folderResource = rootMsgFolder.QueryInterface(Components.interfaces.nsIRDFResource); startFolderUri = folderResource.Value; 
context: function loadStartFolder(initialUri){    var defaultServer = null;    var startFolderUri = initialUri;    //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);            //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;            //first, let's see if it's already in the dom.  This will make life easier.            //We need to make sure content is built by this time        }        msgNavigationService.EnsureDocumentIsLoaded(document);        var startFolder = document.getElementById(startFolderUri);        //if it's not here we will have to make sure it's open.        if(!startFolder && startFolderUri && defaultServer)        {            // 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 && defaultServer)        {            // Start downloading messages for the INBOX of the default server            TriggerGetMessages(defaultServer);        }         // 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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/581be6b1714ab584cebf73528501e152180ffb0e/msgMail3PaneWindow.js/buggy/mailnews/base/resources/content/msgMail3PaneWindow.js