rem: var rootFolder = msgFolder.rootFolder; 
add: var rootFolder = msgFolder.server.rootFolder; 
context: function getSelectedServerForFilters(){    var firstItem = null;    var args = window.arguments;    var selectedFolder = args[0].folder;      if (args && args[0] && selectedFolder)    {        var msgFolder = selectedFolder.QueryInterface(Components.interfaces.nsIMsgFolder);        try        {            var rootFolder = msgFolder.rootFolder;            if (rootFolder.isServer)            {                var server = rootFolder.server;                if (server.canHaveFilters)                {                    // for news, select the news folder                    // for everything else, select the folder's server                    firstItem = (server.type == "nntp") ? msgFolder.URI : rootFolder.URI;                }            }        }        catch (ex)        {        }    }    return firstItem;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/864bec57901417b7e713de73b1516b2d9ae21673/FilterListDialog.js/clean/mailnews/base/search/resources/content/FilterListDialog.js