add: } 
context: function saveFilter() {    var isNewFilter;    var filterName= gFilterNameElement.value;    if (!filterName || filterName == "") {        var str = Bundle.GetStringFromName("mustEnterName");        window.alert(str);        gFilterNameElement.focus();        return false;    }    if (!gFilter) {        gFilter = gFilterList.createFilter(gFilterNameElement.value);        isNewFilter = true;    } else {        gFilter.filterName = gFilterNameElement.value;        isNewFilter = false;    }    saveSearchTerms(gFilter.searchTerms, gFilter);    var action = gActionElement.selectedItem.getAttribute("data");    dump("Action = " + action + "\n");    gFilter.action = action;    if (action == nsMsgFilterAction.MoveToFolder) {        var targetUri;        if (gActionTargetElement)            targetUri = gActionTargetElement.selectedItem.getAttribute("data");        dump("folder target = " + gActionTargetElement.selectedItem + "\n");        if (!targetUri || targetUri == "") {            var str = Bundle.GetStringFromName("mustSelectFolder");            window.alert(str);            return false;        }        gFilter.actionTargetFolderUri = targetUri;    }        else if (action == nsMsgFilterAction.ChangePriority) {        if (!gActionPriority.selectedItem) {            var str = Bundle.GetStringFromName("mustSelectPriority");            window.alert(str);            return false;        }        gFilter.actionPriority = gActionPriority.selectedItem.getAttribute("data");    }        if (isNewFilter)        gFilterList.insertFilterAt(0, gFilter);    // success!    return true;}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/4949e82d85baab3d5da7dc4b7229b31884e0baaf/FilterEditor.js/buggy/mailnews/base/search/resources/content/FilterEditor.js