rem: gFilter.clearActionList(); } 
add:  gFilter.clearActionList(); 
context: function saveFilter() {  var isNewFilter;  var filterAction;   var targetUri;  var filterName= gFilterNameElement.value;  if (!filterName || filterName == "")   {    if (gPromptService)      gPromptService.alert(window, null,                           gFilterBundle.getString("mustEnterName"));    gFilterNameElement.focus();    return false;  }  // If we think have a duplicate, then we need to check that if we  // have an original filter name (i.e. we are editing a filter), then  // we must check that the original is not the current as that is what  // the duplicateFilterNameExists function will have picked up.  if ((!gFilter || gFilter.filterName != filterName) && duplicateFilterNameExists(filterName))  {    if (gPromptService)      gPromptService.alert(window,gFilterBundle.getString("cannotHaveDuplicateFilterTitle"),                            gFilterBundle.getString("cannotHaveDuplicateFilterMessage"));    return false;  }  // before we go any further, validate each specified filter action, abort the save  // if any of the actions is invalid...  for (var index = 0; index < gFilterActionList.getRowCount(); index++)  {    var listItem = gFilterActionList.getItemAtIndex(index);    if (!listItem.validateAction())      return false;  }    // if we made it here, all of the actions are valid, so go ahead and save the filter  if (!gFilter)   {    gFilter = gFilterList.createFilter(filterName);    isNewFilter = true;    gFilter.enabled=true;  }   else   {    gFilter.filterName = filterName;    //Prefilter is treated as a new filter.    if (gPreFillName)     {      isNewFilter = true;      gFilter.enabled=true;    }    else     {      isNewFilter = false;      gFilter.clearActionList();    }  }  // add each filteraction to the filter  for (index = 0; index < gFilterActionList.getRowCount(); index++)    gFilterActionList.getItemAtIndex(index).saveToFilter(gFilter);  if (getScope(gFilter) == Components.interfaces.nsMsgSearchScope.newsFilter)    gFilter.filterType = Components.interfaces.nsMsgFilterType.NewsRule;  else    gFilter.filterType = Components.interfaces.nsMsgFilterType.InboxRule;  saveSearchTerms(gFilter.searchTerms, gFilter);  if (isNewFilter)   {    // new filter - insert into gFilterList    gFilterList.insertFilterAt(0, gFilter);  }  // success!  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/202262558cf1a4b983eec4b99bbafe63c454523f/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js