-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarification on MailboxAddress.TryParse #331
Comments
It's accepted because of historical use on Unix systems where you could send a message to a local user w/o specifying a domain. You can override this behavior by using a ParserOptions with the AllowAddressWithoutDomains set to false. http://www.mimekit.net/docs/html/P_MimeKit_ParserOptions_AllowAddressesWithoutDomain.htm |
You can also use just postmaster without a domain - SMTP RFC 5321
|
@jstedfast Even when specifying that parser option, it still returns true for addresses without a domain. Is this a bug (v2.0.1)? |
It's been a bug for over a year now, has not been fixed, not sure why this issue was closed... |
In some testing I confirmed that an address can have only the "local" part without the domain information, so it is not a valid Internet Address. My test:
Results:
bounty
Address bounty
Name
I would have expected parsing would have returned False since the domain information is missing.
The text was updated successfully, but these errors were encountered: