rem: var folderIndex = GetFolderIndex(outliner, parentFolderResource); 
add: var folderIndex = GetFolderIndex(tree, parentFolderResource); 
context: function EnsureAllAncestorsAreExpanded(outliner, resource){    // get the parent of the desired folder, and then try to get    // the index of the parent in the outliner    var folder = resource.QueryInterface(Components.interfaces.nsIFolder);        // if this is a server, there are no ancestors, so stop.    var msgFolder = folder.QueryInterface(Components.interfaces.nsIMsgFolder);    if (msgFolder.isServer)      return;    var parentFolderResource = RDF.GetResource(folder.parent.URI);    var folderIndex = GetFolderIndex(outliner, parentFolderResource);    if (folderIndex == -1) {      // if we couldn't find the parent, recurse      EnsureAllAncestorsAreExpanded(outliner, parentFolderResource);      // ok, now we should be able to find the parent      folderIndex = GetFolderIndex(outliner, parentFolderResource);    }    // if the parent isn't open, open it    if (!(outliner.outlinerBoxObject.view.isContainerOpen(folderIndex)))      outliner.outlinerBoxObject.view.toggleOpenState(folderIndex);}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/msgMail3PaneWindow.js/clean/mailnews/base/resources/content/msgMail3PaneWindow.js