rem: gFilter.AppendTerm(searchTerm); 
add: gFilter.appendTerm(searchTerm); 
context: function saveFilter() {    if (!gFilter) {        gFilter = gFilterList.createFilter(gFilterNameElement.value);    } else {        gFilter.filterName = gFilterNameElement.value;    }    var searchTermElements =        document.getElementById("searchterms").childNodes;        var searchTerms = gFilter.searchTerms;        for (var i = 0; i<searchTermElements.length; i++) {        try {            dump("Saving search element " + i + "\n");            var searchTerm = searchTermElements[i].searchTerm;            if (searchTerm)                searchTermElements[i].save();            else {                // need to create a new searchTerm, and somehow save it to that                dump("Need to create searchterm " + i + "\n");                searchTerm = gFilter.createTerm();                searchTermElements[i].saveTo(searchTerm);                gFilter.AppendTerm(searchTerm);            }        } catch (ex) {            dump("** Error: " + ex + "\n");        }    }    var action = gActionElement.selectedItem.getAttribute("data");    gFilter.action = action;    if (action == nsMsgFilterAction.MoveToFolder &&        gActionElement.selectedItem)        gFilter.actionTargetFolderUri =            gActionTargetElement.selectedItem.getAttribute("data");    else if (action == nsMsgFilterAction.ChangePriority)        gFilter.actionPriority = 0; // whatever, fix this}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4a7bde5aac0a411d0b3efe83bcfea237a85093bd/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js