Bug 1232735 - Use parseEncodedHeader instead of parseDecodedHeader. r=neil, a=mkmelin
authorJorg K
Wed, 23 Dec 2015 23:27:06 +0100
changeset 26603 55fad8a3414e5dee416c6ecabcf6b6fdae513c61
parent 26602 8123dae89cedac3608ed164205e7535f02dea7bc
child 26604 a4907013150f036732f87103504d35717fa9624b
push id1850
push userclokep@gmail.com
push dateWed, 08 Mar 2017 19:29:12 +0000
treeherdercomm-esr52@028df196b2d9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneil, mkmelin
bugs1232735
Bug 1232735 - Use parseEncodedHeader instead of parseDecodedHeader. r=neil, a=mkmelin
mail/components/compose/content/MsgComposeCommands.js
--- a/mail/components/compose/content/MsgComposeCommands.js
+++ b/mail/components/compose/content/MsgComposeCommands.js
@@ -2270,17 +2270,17 @@ function ComposeStartup(recycled, aParam
       identities = MailServices.accounts.allIdentities;
     params.identity = identities.queryElementAt(0, Components.interfaces.nsIMsgIdentity);
   }
 
   identityList.selectedItem =
     identityList.getElementsByAttribute("identitykey", params.identity.key)[0];
   if (params.composeFields.from)
   {
-    let from = MailServices.headerParser.parseDecodedHeader(params.composeFields.from).join(", ");
+    let from = MailServices.headerParser.parseEncodedHeader(params.composeFields.from, null).join(", ");
     if (from != identityList.value)
     {
       MakeFromFieldEditable(true);
       identityList.value = from;
     }
   }
   LoadIdentity(true);