-
Notifications
You must be signed in to change notification settings - Fork 85
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
Postal doesn't correctly support RFC6531 email addresses #51
Comments
This appears to be a limitation in JavaMail's postal.message> (.getAddress (InternetAddress. "pépé@example.com" "pépé"))
"pépé@example.com"
postal.message> (.getPersonal (InternetAddress. "Pépé <pépé@example.com>"))
AddressException Local address contains control or whitespace javax.mail.internet.InternetAddress.checkAddress (InternetAddress.java:1213) Bill Shannon has responded to this issue and thinks RFC6531 support in JavaMail would be premature anyway because not many servers yet support it. That was almost a year ago though. |
We're encountering this issue, but it looks like there's been some recent movement in JavaMail and times have indeed changed - JavaMail 1.6.0 (in RC now, slated for a summer 2017 release) now supports RFC 653[0-2]: https://github.com/javaee/javamail/issues/93#issuecomment-298527783 I'm not familiar enough with Thank you! |
These cases work now with Jakarta Mail (née JavaMail) 1.6.5:
Think we can close it? |
RFC6531 email addresses still don't work in postal, #27 only addressed sender names and not email addresses.
The three argument version of this code is not called by any postal code afaict, and the two argument version returns nil when given non-ascii characters as input, e.g.
The text was updated successfully, but these errors were encountered: