Skip to content

MailboxAddress formating with folding #1094

Answered by jstedfast
jlynema asked this question in Q&A
Discussion options

You must be logged in to vote

These examples are all the expected result except maybe the last one which seems like the logic could be improved but is still valid output.

What you have to understand is that the rules for addresses make the following criteria:

  1. . needs to be quoted
  2. quoted-strings are meant to get unquoted by the parser on the receiving end
  3. If the sending client wishes for the double-quotes to remain, then it must do "This is a \"nested quote\" which will remain" <[email protected]>

Once you understand all of those rules, you can clearly see that the output that MimeKit produces is correct and that the display of the receiving mail client (Outlook?) is wrong.

There is a similar discussion here: #1093

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jstedfast
Comment options

Answer selected by jlynema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants