0

The Net Framework 4.5 MailAddress class supports the following mail address formats: blah, blah "Consecutive and trailing dots in user names" blah, blah. "user names" are, I believe, synonymous with "local part" yet RFC5322 et al state that consecutive dots in the local part are invalid.

What's going on here, please?

  • 1
    Where in RFC5322 does it state that consecutive dots in the local part are invald? – Holf Sep 01 '14 at 19:16
  • 1
    Here's a discussion of it http://serverfault.com/questions/395766/are-two-periods-allowed-in-the-local-part-of-an-email-address – Richard Creer Sep 02 '14 at 19:39

1 Answers1

0

RFC5322 allows for the local-part to be either a dot-atom, quoted-string or a obs-local-part. Specifically looking at the quoted-string option there, that can contain in its content any ASCII characters apart from the quote character or the "\" character; and as such, you could have multiple dots in the user portion of an email address within an email message. Of course, an application may choose to display I.hate.spam.@example.com instead of "I.hate.spam."@example.com, as it would show within the message headers.

Rowland Shaw
  • 37,700
  • 14
  • 97
  • 166