Bug 1090553 - if creating filter in Unified folder, create it in the account of the message. r=mkmelin
authoraceman <acelists@atlas.sk>
Wed, 20 May 2015 13:44:00 +0300
changeset 17990 e7bf02ea3e6132a0e8cd3c141fe232da335de6b0
parent 17989 8e4abc1b88495ee6725c2d5819998220d685004c
child 17991 b1239e93c6a51fed29dd04428b0ac07933f9be6b
push id11057
push usermkmelin@iki.fi
push dateFri, 29 May 2015 18:46:37 +0000
treeherdercomm-central@b1239e93c6a5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmkmelin
bugs1090553
Bug 1090553 - if creating filter in Unified folder, create it in the account of the message. r=mkmelin
mail/base/content/msgHdrViewOverlay.js
--- a/mail/base/content/msgHdrViewOverlay.js
+++ b/mail/base/content/msgHdrViewOverlay.js
@@ -1630,18 +1630,17 @@ function CopyEmailNewsAddress(addressNod
  * @param aHeaderNode  A node which has an "emailAddress" attribute
  *                     or a "headerName" attribute.
  */
 function CreateFilter(aHeaderNode)
 {
   let nodeIsAddress = aHeaderNode.hasAttribute("emailAddress");
   let nodeValue = nodeIsAddress ? aHeaderNode.getAttribute("emailAddress") :
                                   document.getAnonymousNodes(aHeaderNode)[0].textContent;
-  top.MsgFilters(nodeValue, GetFirstSelectedMsgFolder(),
-                 aHeaderNode.getAttribute("headerName"));
+  top.MsgFilters(nodeValue, null, aHeaderNode.getAttribute("headerName"));
 }
 
 /**
  * Get the newsgroup server corresponding to the currently selected message.
  *
  * @return nsISubscribableServer for the newsgroup, or null
  */
 function GetNewsgroupServer()