rem: if (msgFolder.server.type == "nntp" && !msgFolder.isServer) { gRunFiltersFolderPicker.setAttribute("hidden", "true"); gRunFiltersButton.setAttribute("hidden", "true"); gRunFiltersFolderPickerLabel.setAttribute("hidden", "true"); } else { 
add: if (CanRunFiltersAfterTheFact(msgFolder.server)) { 
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;   }   // Get the first folder uri for this server. INBOX for   // imap and pop accts and 1st news group for news.   var firstFolderURI = getFirstFolderURI(msgFolder);   SetFolderPicker(firstFolderURI, "runFiltersFolder");   updateButtons();   gCurrentServerURI = uri;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/0ca1dc063fcd0bcb6240261ae71c227376a55921/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js