Skip to content
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

Ensure email addresses in SMTP headers are correctly escaped #26

Merged

Conversation

rtyley
Copy link
Owner

@rtyley rtyley commented Jan 28, 2016

Should fix #23, kindly reported by @cmalard and noted by @rimrul.

Sigh - I thought, from a fairly reasonable look at the javadoc of javax.mail.internet.InternetAddress, that it would store a safely encoded string representation if I used it's one-arg constructor with eg, 'Cédric Malard <c@m.com>' - but no! So, got to use it's two-arg constructor - and pass InternetAddresss around everywhere instead...

Sigh - I thought, from a fairly reasonable look at the javadoc of
`javax.mail.internet.InternetAddress`, that it would store a safely
encoded string representation if I used it's one-arg constructor with
eg, 'Cédric Malard <c@m.com>' - but no! So, got to use it's two-arg
constructor - and pass `InternetAddress`s around everywhere instead...

#23
rtyley added a commit that referenced this pull request Jan 28, 2016
…ders-are-correctly-escaped

Ensure email addresses in SMTP headers are correctly escaped
@rtyley rtyley merged commit ab7cce1 into master Jan 28, 2016
@prout-bot
Copy link
Collaborator

Seen on PROD (merged by @rtyley 7 minutes and 33 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message headers can not have 8-bit non-ASCII characters in it
2 participants