OpaqueMail
OpaqueMail copied to clipboard
Place display name between quotes after decoding.
Closes #70
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).