Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Net Framework 4.5 MailAddress 类支持以下邮件地址格式:等等,等等“用户名中的连续和尾随点”等等。我相信“用户名”是“本地部分”的同义词,但 RFC5322 等人声明本地部分中的连续点是无效的。
请问这里是怎么回事?
RFC5322 允许本地部分是点原子、引用字符串或 obs-local-part。特别是那里的quoted-string选项,它可以在其内容中包含除引号字符或“\”字符之外的任何ASCII字符;因此,您可以在电子邮件中的电子邮件地址的用户部分有多个点。当然,应用程序可以选择显示I.hate.spam.@example.com而不是"I.hate.spam."@example.com,因为它会显示在消息头中。
I.hate.spam.@example.com
"I.hate.spam."@example.com