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/mime/public/nsIMsgHeaderParser.idl | |
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/mime/public/nsIMsgHeaderParser.idl')
-rw-r--r-- | mailnews/mime/public/nsIMsgHeaderParser.idl | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/mailnews/mime/public/nsIMsgHeaderParser.idl b/mailnews/mime/public/nsIMsgHeaderParser.idl index 2512623d8..fd582b64c 100644 --- a/mailnews/mime/public/nsIMsgHeaderParser.idl +++ b/mailnews/mime/public/nsIMsgHeaderParser.idl @@ -97,6 +97,18 @@ interface nsIMsgHeaderParser : nsISupports { out msgIAddressObject addresses); /** + * Parse an address-based header that has not yet been 2047-decoded and does not + * contain raw octets but instead wide (UTF-16) characters. + * + * @param aEncodedHeader The RFC 2047-encoded header to parse. + * @return An array corresponding to the header description. + */ + void parseEncodedHeaderW(in AString aEncodedHeader, + [optional] out unsigned long length, + [retval, array, size_is(length)] + out msgIAddressObject addresses); + +/** * Parse an address-based header that has been 2047-decoded. * * The result of this method is an array of objects described in the above @@ -178,9 +190,6 @@ interface nsIMsgHeaderParser : nsISupports { * "Bond, James <agent007@mi5.invalid>" would produce one address object, * while the string "webmaster@nowhere.invalid, child@nowhere.invalid" would * produce two address objects. - * - * Note that the input string is RFC 2231 and RFC 2047 decoded but no UTF-8 - * decoding takes place. */ void makeFromDisplayAddress(in AString aDisplayAddresses, [optional] out unsigned long count, |