diff --git a/mozilla/mail/base/content/FilterListDialog.js b/mozilla/mail/base/content/FilterListDialog.js index 5de34473f2e..5e43c2765de 100644 --- a/mozilla/mail/base/content/FilterListDialog.js +++ b/mozilla/mail/base/content/FilterListDialog.js @@ -217,10 +217,13 @@ function setServer(uri) if (msgFolder) msgFolder.getFilterList(gFilterListMsgWindow); + // this will get the deferred to account root folder, if server is deferred + msgFolder = msgFolder.server.rootMsgFolder; + var rootFolderUri = msgFolder.URI; rebuildFilterTree(uri); // root the folder picker to this server - gRunFiltersFolderPicker.setAttribute("ref", uri); + gRunFiltersFolderPicker.setAttribute("ref", rootFolderUri); // run filters after the fact not supported by news if (CanRunFiltersAfterTheFact(msgFolder.server)) {