OpaqueMail icon indicating copy to clipboard operation
OpaqueMail copied to clipboard

Place display name between quotes after decoding.

Open Kermer opened this issue 7 years ago • 1 comments

Closes #70

Kermer avatar Jan 04 '18 07:01 Kermer

This patch is also wrong. You can't just put quotes around the content of each decoded blob in the output string.

What if you have something like this?

To: =?iso-8859-1?B?<base64>?= =?iso-8859-1?B?<base64>?= <[email protected]>

You might end up with: "FirstName" "LastName" <[email protected]>

You're also removing any single and double quote characters from the decoded output which is not a good idea because they may be significant. Remember: the idea is that the resulting DisplayName of the parsed address should be identical to what the user typed in the sending client (WYSIWYG).

jstedfast avatar Jan 04 '18 10:01 jstedfast