rem: if (curFilter.enabled) 
add: if (curFilter.enabled && !curFilter.temporary) 
context: function MsgApplyFilters(){  var filterService = Components.classes["@mozilla.org/messenger/services/filters;1"].getService(Components.interfaces.nsIMsgFilterService);  var preselectedFolder = GetFirstSelectedMsgFolder();  var selectedFolders = Components.classes["@mozilla.org/supports-array;1"].createInstance(Components.interfaces.nsISupportsArray);  selectedFolders.AppendElement(preselectedFolder);           var curFilterList = preselectedFolder.getFilterList(msgWindow);  // create a new filter list and copy over the enabled filters to it.  // We do this instead of having the filter after the fact code ignore  // disabled filters because the Filter Dialog filter after the fact  // code would have to clone filters to allow disabled filters to run,  // and we don't support cloning filters currently.  var tempFilterList = filterService.getTempFilterList(preselectedFolder);  var numFilters = curFilterList.filterCount;  // make sure the temp filter list uses the same log stream  tempFilterList.logStream = curFilterList.logStream;  tempFilterList.loggingEnabled = curFilterList.loggingEnabled;  var newFilterIndex = 0;  for (var i = 0; i < numFilters; i++)  {    var curFilter = curFilterList.getFilterAt(i);    if (curFilter.enabled)    {      tempFilterList.insertFilterAt(newFilterIndex, curFilter);      newFilterIndex++;    }  }  filterService.applyFiltersToFolders(tempFilterList, selectedFolders, msgWindow);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b5a5e10b0a700baeea2f160f63bf61c2aea4f3ec/mailWindowOverlay.js/buggy/mail/base/content/mailWindowOverlay.js