rem: var folderURI = runFiltersFolderPicker.getAttribute("uri"); var resource = rdf.GetResource(folderURI); 
add:  if (gRunFiltersButton.getAttribute("label") == gRunFiltersButton.getAttribute("stoplabel")) { gFilterListMsgWindow.StopUrls(); return; }  var folderURI = gRunFiltersFolderPicker.getAttribute("uri"); var resource = gRDF.GetResource(folderURI); 
context: function runSelectedFilters(){  var folderURI = runFiltersFolderPicker.getAttribute("uri");  var resource = rdf.GetResource(folderURI);  var msgFolder = resource.QueryInterface(Components.interfaces.nsIMsgFolder);  var filterService = Components.classes["@mozilla.org/messenger/services/filters;1"].getService(Components.interfaces.nsIMsgFilterService);  var filterList = filterService.getTempFilterList(msgFolder);  var folders = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);  folders.AppendElement(msgFolder);  // make sure the tmp filter list uses the real filter list log stream  filterList.logStream = currentFilterList().logStream;  filterList.loggingEnabled = currentFilterList().loggingEnabled;  var sel = gFilterTree.view.selection;  for (var i = 0; i < sel.getRangeCount(); i++) {    var start = {}, end = {};    sel.getRangeAt(i, start, end);    for (var j = start.value; j <= end.value; j++) {      var curFilter = getFilter(j);      if (curFilter)      {        filterList.insertFilterAt(start.value - j, curFilter);      }    }  }  filterService.applyFiltersToFolders(filterList, folders, gFilterListMsgWindow);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/03f8d406f8d7b80d4de01dffbecfac3f6e2854e0/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js