Bug 527629 - Manual filters are no longer allowed on deferred-from servers; r+a=dmose
authorKent James <kent@caspia.com>
Tue, 10 Nov 2009 15:41:13 -0800
changeset 4358 60be35e6f4cc003b0cdd355ac759a419e5b6c5ba
parent 4357 b2fdd48b28fe67b5ee4fbdb8d33a8d33745ab693
child 4359 d48d66066f1e75ea848ba9b04d83a4b271440be0
push id3407
push userkent@caspia.com
push dateTue, 10 Nov 2009 23:43:43 +0000
treeherdercomm-central@60be35e6f4cc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs527629
Bug 527629 - Manual filters are no longer allowed on deferred-from servers; r+a=dmose
mail/base/content/FilterListDialog.js
--- a/mail/base/content/FilterListDialog.js
+++ b/mail/base/content/FilterListDialog.js
@@ -153,16 +153,19 @@ function setFolder(msgFolder)
    var filterList = msgFolder.getEditableFilterList(gFilterListMsgWindow);
    rebuildFilterList(filterList);
 
    // Select the first item in the list, if there is one.
    var list = document.getElementById("filterList");
    if (list.getRowCount())
      list.selectItem(list.getItemAtIndex(0));
 
+   // this will get the deferred to account root folder, if server is deferred
+   msgFolder = msgFolder.server.rootMsgFolder;
+
    // root the folder picker to this server
    var runMenu = document.getElementById("runFiltersPopup");
    runMenu._teardown();
    runMenu._parentFolder = msgFolder;
    runMenu._ensureInitialized();
 
    // run filters after the fact not supported by news
    if (CanRunFiltersAfterTheFact(msgFolder.server)) {