add:  var serverMenu = document.getElementById("serverMenu"); var menuitems = serverMenu.getElementsByTagName("menuitem");  if (window.arguments[0].serverURI) {  reRootFolderPicker(window.arguments[0].serverURI); var menuitems = serverMenu.getElementsByAttribute("id", gServerURI); serverMenu.selectedItem = menuitems[0]; } else reRootFolderPicker(menuitems[1]); 
context: function onLoad(){  gFolderPickerTree = document.getElementById("folderPickerTree");  if (window.arguments[0].searchFolderURIs)  {    // for each folder uri,     var srchFolderUriArray = window.arguments[0].searchFolderURIs.split('|');    // get the folder for each search URI and set the searchThisFolder flag on it    for (var i in srchFolderUriArray)     {      var realFolderRes = GetResourceFromUri(srchFolderUriArray[i]);      var realFolder = realFolderRes.QueryInterface(Components.interfaces.nsIMsgFolder);      if (realFolder)        realFolder.setInVFEditSearchScope(true, false);    }  }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/40ce15f164caa7555b6d78338586c545f64847a7/virtualFolderListDialog.js/buggy/mailnews/base/resources/content/virtualFolderListDialog.js