rem: var msgWindowContractID = "@mozilla.org/messenger/msgwindow;1"; var nsIMsgWindow = Components.interfaces.nsIMsgWindow; gFilterListMsgWindow = Components.classes[msgWindowContractID].createInstance(nsIMsgWindow); 
add: gFilterListMsgWindow = Components.classes["@mozilla.org/messenger/msgwindow;1"].createInstance(Components.interfaces.nsIMsgWindow); gFilterListMsgWindow.statusFeedback = gStatusFeedback; 
context: function onLoad(){    rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService(Components.interfaces.nsIRDFService);    var gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();    gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);    var msgWindowContractID = "@mozilla.org/messenger/msgwindow;1";    var nsIMsgWindow = Components.interfaces.nsIMsgWindow;    gFilterListMsgWindow = Components.classes[msgWindowContractID].createInstance(nsIMsgWindow);    gFilterListMsgWindow.SetDOMWindow(window);     gFilterBundle = document.getElementById("bundle_filter");    gFilterTree = document.getElementById("filterTree");    editButton = document.getElementById("editButton");    deleteButton = document.getElementById("deleteButton");    reorderUpButton = document.getElementById("reorderUpButton");    reorderDownButton = document.getElementById("reorderDownButton");    runFiltersFolderPickerLabel = document.getElementById("folderPickerPrefix");    runFiltersFolderPicker = document.getElementById("runFiltersFolder");    runFiltersButton = document.getElementById("runFiltersButton");    updateButtons();    // get the selected server if it can have filters.    var firstItem = getSelectedServerForFilters();    // if the selected server cannot have filters, get the default server    // if the default server cannot have filters, check all accounts    // and get a server that can have filters.    if (!firstItem)        firstItem = getServerThatCanHaveFilters();    if (firstItem) {        selectServer(firstItem);    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/03f8d406f8d7b80d4de01dffbecfac3f6e2854e0/FilterListDialog.js/buggy/mailnews/base/search/resources/content/FilterListDialog.js