rem:   if (filterEditor) filterEditor.focus(); else filterList.focus(); 
add:   if (filterEditor) { if(emailAddress) { if(!gPromptService) { gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(); gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService); }  gPromptService.alert(window, gBrandBundle.getString("brandShortName"), gMessengerBundle.getString('cannotHaveTwoFilterRulesText') ); } filterEditor.focus(); } else filterList.openPrefillOnExistingFilterList(emailAddress); 
context: function MsgFilters(){    var preselectedFolder = GetFirstSelectedMsgFolder();    var windowManagerInterface = GetWindowMediator();    var filterList = windowManagerInterface.getMostRecentWindow("mailnews:filterlist");    if (filterList)    {        var filterEditor = windowManagerInterface.getMostRecentWindow("mailnews:filtereditor");        // If the filtereditor is open, then we focus that because it is modal and        // thus blocking the filterlist from focusing.        if (filterEditor)            filterEditor.focus();        else            filterList.focus();    }    else        window.openDialog("chrome://messenger/content/FilterListDialog.xul", "",                           "chrome,resizable,centerscreen,dialog=yes", { folder: preselectedFolder });}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/14d4a3683930c90c081ad7c2ce91f0f593bb1126/mailWindowOverlay.js/buggy/mailnews/base/resources/content/mailWindowOverlay.js