rem: if (view.isContainer(i)) { var folderResource = GetFolderResource(folderTree, i); var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder); var isServer = GetFolderAttribute(folderTree, folderResource, "IsServer"); if (isServer == "true") { if (view.isContainerOpen(i)) { var server = msgFolder.server;  if (server.type != "imap") server.performExpand(msgWindow); } } } 
add: var server = servers.QueryElementAt(i, Components.interfaces.nsIMsgIncomingServer); if (server.type != "imap" && !server.rootMsgFolder.getFlag(MSG_FOLDER_FLAG_ELIDED)) server.performExpand(msgWindow); 
context: function PerformExpandForAllOpenServers(){    var folderTree = GetFolderTree();    var view = folderTree.treeBoxObject.view;    for (var i = 0; i < view.rowCount; i++)    {        if (view.isContainer(i))        {            var folderResource = GetFolderResource(folderTree, i);            var msgFolder = folderResource.QueryInterface(Components.interfaces.nsIMsgFolder);            var isServer = GetFolderAttribute(folderTree, folderResource, "IsServer");             if (isServer == "true")            {                if (view.isContainerOpen(i))                {                    var server = msgFolder.server;                    // Don't do this for imap servers. See bug #41943                    if (server.type != "imap")                        server.performExpand(msgWindow);                }            }        }    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5a7cfe234fad91faceb2735e646c3e4c27a54a52/msgMail3PaneWindow.js/buggy/mail/base/content/msgMail3PaneWindow.js