diff --git a/mailnews/base/resources/content/msgAccountCentral.js b/mailnews/base/resources/content/msgAccountCentral.js index 7044dc06b46..3fd30fbcd77 100644 --- a/mailnews/base/resources/content/msgAccountCentral.js +++ b/mailnews/base/resources/content/msgAccountCentral.js @@ -148,11 +148,16 @@ function ArrangeAccountCentralItems(server, protocolInfo, msgFolder) var canHaveFilters = server.canHaveFilters; SetItemDisplay("CreateFilters", canHaveFilters); + // Subscribe to IMAP Folders + var canSubscribeImapFolders = msgFolder.canSubscribe && protocolInfo.canGetMessages; + SetItemDisplay("SubscribeImapFolders", canSubscribeImapFolders); + // Offline Settings var supportsOffline = (server.offlineSupportLevel != 0); SetItemDisplay("OfflineSettings", supportsOffline); - var displayAdvFeatures = canSearchMessages || canHaveFilters || supportsOffline; + var displayAdvFeatures = canSearchMessages || canHaveFilters || + canSubscribeImapFolders|| supportsOffline; // Display Adv Features header, only if any of the items are displayed SetItemDisplay("AdvancedFeaturesHeader", displayAdvFeatures); @@ -249,7 +254,7 @@ function CreateMsgFilters() } // Open Subscribe dialog -function SubscribeNewsgroups() +function Subscribe() { window.parent.MsgSubscribe(); } @@ -258,4 +263,4 @@ function SubscribeNewsgroups() function JunkSettings() { window.parent.MsgJunkMail(); -} \ No newline at end of file +} diff --git a/mailnews/base/resources/content/msgAccountCentral.xul b/mailnews/base/resources/content/msgAccountCentral.xul index da098c23a4e..02375df0f8f 100644 --- a/mailnews/base/resources/content/msgAccountCentral.xul +++ b/mailnews/base/resources/content/msgAccountCentral.xul @@ -92,7 +92,7 @@ Rights Reserved. - @@ -147,6 +147,12 @@ Rights Reserved.