Bug 651629 - Re-enable archiving in the archive folder (port first patch from bug 499155). r=Mnyromyr sr=Neil
authorJens Hatlak <jh@junetz.de>
Mon, 25 Apr 2011 23:36:53 +0200
changeset 7610 d00d90aa7fed14ffaca412385a7e1d709f267436
parent 7609 227ee418e968c038b3c92f55cd7eda99c0bb0674
child 7611 210f183920f2d323f593b0bff0bff9b2840cfe6e
push idunknown
push userunknown
push dateunknown
reviewersMnyromyr, Neil
bugs651629, 499155
Bug 651629 - Re-enable archiving in the archive folder (port first patch from bug 499155). r=Mnyromyr sr=Neil
suite/mailnews/folderDisplay.js
--- a/suite/mailnews/folderDisplay.js
+++ b/suite/mailnews/folderDisplay.js
@@ -107,19 +107,16 @@ var gFolderDisplay =
 
   get canArchiveSelectedMessages()
   {
     if (!gDBView)
       return false;
     var selectedMessages = this.selectedMessages;
     if (selectedMessages.length == 0)
       return false;
-    if (!this.displayedFolder || this.displayedFolder.isSpecialFolder(
-          Components.interfaces.nsMsgFolderFlags.Archive, true))
-      return false;
     return selectedMessages.every(function(aMsg) GetIdentityForHeader(aMsg).archiveEnabled);
   },
 
   get displayedFolder()
   {
     return gMsgFolderSelected;
   }