Bug 1292364 - Since jsmime.js, no longer possible to use custom addressing headers in mail.compose.other.header (port bug 1250376 to SeaMonkey). r=Ratty, a=IanN
authorrsx11m <rsx11m.pub@gmail.com>
Thu, 04 Aug 2016 18:21:38 -0500
changeset 27267 8c1e5a12bdf90ccb9339e2698e1c20b3bf07ea8d
parent 27266 8d830bcece418eb7c6f8353a0bc9d691de6e280c
child 27268 51994306d373a802dfb426ab9f83596b3f7b4d1e
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)
reviewersRatty, IanN
bugs1292364, 1250376
Bug 1292364 - Since jsmime.js, no longer possible to use custom addressing headers in mail.compose.other.header (port bug 1250376 to SeaMonkey). r=Ratty, a=IanN
suite/mailnews/compose/addressingWidgetOverlay.js
--- a/suite/mailnews/compose/addressingWidgetOverlay.js
+++ b/suite/mailnews/compose/addressingWidgetOverlay.js
@@ -131,17 +131,17 @@ function Recipients2CompFields(msgCompFi
           case "addr_cc"          : addrCc += cc_Sep + recipient; cc_Sep = ",";               break;
           case "addr_bcc"         : addrBcc += bcc_Sep + recipient; bcc_Sep = ",";            break;
           case "addr_reply"       : addrReply += reply_Sep + recipient; reply_Sep = ",";      break;
           case "addr_newsgroups"  : addrNg += ng_Sep + fieldValue; ng_Sep = ",";              break;
           case "addr_followup"    : addrFollow += follow_Sep + fieldValue; follow_Sep = ",";  break;
           case "addr_other":
             let headerName = awGetPopupElement(i).selectedItem.getAttribute("label");
             headerName = headerName.substring(0, headerName.indexOf(':'));
-            msgCompFields.setHeader(headerName, fieldValue);
+            msgCompFields.setRawHeader(headerName, fieldValue, null);
             break;
         }
       }
       i ++;
     }
 
     msgCompFields.to = addrTo;
     msgCompFields.cc = addrCc;