diff options
author | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 01:08:45 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2019-11-11 01:08:45 -0500 |
commit | 43db6faf2afe9075d97c59bfc80fb0fd27488606 (patch) | |
tree | 6388a5d22bd81d640f33c446d78ddcb0b3375507 /mailnews/compose/src/nsMsgCompose.cpp | |
parent | 0707a51eaddec22ab760e27050e2fcefab2cdae5 (diff) | |
download | UXP-43db6faf2afe9075d97c59bfc80fb0fd27488606.tar UXP-43db6faf2afe9075d97c59bfc80fb0fd27488606.tar.gz UXP-43db6faf2afe9075d97c59bfc80fb0fd27488606.tar.lz UXP-43db6faf2afe9075d97c59bfc80fb0fd27488606.tar.xz UXP-43db6faf2afe9075d97c59bfc80fb0fd27488606.zip |
Bug 1528496 - Correctly fix Bug 1023285 and utf8 addressing header display for jsmime.
Tag #1273
Diffstat (limited to 'mailnews/compose/src/nsMsgCompose.cpp')
-rw-r--r-- | mailnews/compose/src/nsMsgCompose.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/mailnews/compose/src/nsMsgCompose.cpp b/mailnews/compose/src/nsMsgCompose.cpp index 4ce8e8def..a7c2140ad 100644 --- a/mailnews/compose/src/nsMsgCompose.cpp +++ b/mailnews/compose/src/nsMsgCompose.cpp @@ -2646,15 +2646,13 @@ NS_IMETHODIMP QuotingOutputStreamListener::OnStopRequest(nsIRequest *request, ns } nsCString fromEmailAddress; - ExtractEmail(EncodedHeader(NS_ConvertUTF16toUTF8(from)), fromEmailAddress); + ExtractEmail(EncodedHeaderW(from), fromEmailAddress); nsTArray<nsCString> toEmailAddresses; - ExtractEmails(EncodedHeader(NS_ConvertUTF16toUTF8(to)), - UTF16ArrayAdapter<>(toEmailAddresses)); + ExtractEmails(EncodedHeaderW(to), UTF16ArrayAdapter<>(toEmailAddresses)); nsTArray<nsCString> ccEmailAddresses; - ExtractEmails(EncodedHeader(NS_ConvertUTF16toUTF8(cc)), - UTF16ArrayAdapter<>(ccEmailAddresses)); + ExtractEmails(EncodedHeaderW(cc), UTF16ArrayAdapter<>(ccEmailAddresses)); nsCOMPtr<nsIPrefBranch> prefs (do_GetService(NS_PREFSERVICE_CONTRACTID, &rv)); NS_ENSURE_SUCCESS(rv, rv); |