rem: targetUri = gActionTargetElement.selectedItem.getAttribute("data"); 
add: targetUri = gActionTargetElement.selectedItem.getAttribute("value"); 
context: function saveFilter() {    var isNewFilter;    var str;    var filterName= gFilterNameElement.value;    if (!filterName || filterName == "") {        str = gFilterBundle.getString("mustEnterName");        window.alert(str);        gFilterNameElement.focus();        return false;    }    var targetUri;    var action = gActionElement.selectedItem.getAttribute("data");        if (action == nsMsgFilterAction.MoveToFolder) {        if (gActionTargetElement)            targetUri = gActionTargetElement.selectedItem.getAttribute("data");        if (!targetUri || targetUri == "") {            str = gFilterBundle.getString("mustSelectFolder");            window.alert(str);            return false;        }    }        else if (action == nsMsgFilterAction.ChangePriority) {        if (!gActionPriority.selectedItem) {            str = gFilterBundle.getString("mustSelectPriority");            window.alert(str);            return false;        }    }    // this must happen after everything has     if (!gFilter) {        gFilter = gFilterList.createFilter(gFilterNameElement.value);        isNewFilter = true;    } else {        gFilter.filterName = gFilterNameElement.value;        isNewFilter = false;    }    gFilter.enabled=true;    gFilter.action = action;    if (action == nsMsgFilterAction.MoveToFolder)        gFilter.actionTargetFolderUri = targetUri;    else if (action == nsMsgFilterAction.ChangePriority)        gFilter.actionPriority = gActionPriority.selectedItem.getAttribute("data");    saveSearchTerms(gFilter.searchTerms, gFilter);        if (isNewFilter) {        // new filter - insert into gFilterList        gFilterList.insertFilterAt(0, gFilter);    }    // success!    return true;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/0b2dd2b2d2fd037df917e07645fa019a963332a5/FilterEditor.js/buggy/mailnews/base/search/resources/content/FilterEditor.js