context: function setServer(uri){   if (uri == gCurrentServerURI)     return;   var resource = gRDF.GetResource(uri);   var msgFolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder);   //Calling getFilterList will detect any errors in rules.dat, backup the file, and alert the user   //we need to do this because gFilterTree.setAttribute will cause rdf to call getFilterList and there is    //no way to pass msgWindow in that case.    if (msgFolder)     msgFolder.getFilterList(gFilterListMsgWindow);   rebuildFilterTree(uri);      // root the folder picker to this server   gRunFiltersFolderPicker.setAttribute("ref", uri);   // run filters after the fact not supported by news   if (msgFolder.server.type == "nntp" && !msgFolder.isServer) {     gRunFiltersFolderPicker.setAttribute("hidden", "true");     gRunFiltersButton.setAttribute("hidden", "true");     gRunFiltersFolderPickerLabel.setAttribute("hidden", "true");   }   else {     gRunFiltersFolderPicker.removeAttribute("hidden");     gRunFiltersButton.removeAttribute("hidden");     gRunFiltersFolderPickerLabel.removeAttribute("hidden");     // for POP3 and IMAP, select the first folder, which is the INBOX     gRunFiltersFolderPicker.selectedIndex = 0;   }   SetFolderPicker(uri, "runFiltersFolder");   updateButtons();   gCurrentServerURI = uri;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/db5fcc067fc0cd1ea572310668d986ba4c2bd60b/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js