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

Mail::AddressListsParser can not parse #778

Closed
ckarbass opened this issue Aug 9, 2014 · 4 comments
Closed

Mail::AddressListsParser can not parse #778

ckarbass opened this issue Aug 9, 2014 · 4 comments

Comments

@ckarbass
Copy link

ckarbass commented Aug 9, 2014

Looks like the parser isn't handling ñ or non english characters on Ruby 2.0.0 Rails 4

@bonsaiben
Copy link

Also appears not to be able to parse Japanese characters.

@bf4
Copy link
Collaborator

bf4 commented Jan 12, 2015

cc @bpot

@bpot
Copy link
Contributor

bpot commented Jan 12, 2015

I believe this is expected behavior -- the parser expects all headers to only contain ASCII characters. It assumes non-ascii characters will be encoded as specified in rfc2047. For example: https://github.com/mikel/mail/blob/master/spec/mail/encodings_spec.rb#L93

However, it looks like there are now some RFCs around the use of non-ascii characters in email headers that are finding being adopted: http://en.wikipedia.org/wiki/International_email#Overview_and_Framework_for_Internationalized_Email

I can take a look at what changes would need to be made to the parser to support 'international emails'.

@ckarbass @bonsaiben Could you provide examples of failing emails and the version of the mail gem you are using? Thanks!

@jeremy
Copy link
Collaborator

jeremy commented May 17, 2017

Fixed by #1103

@jeremy jeremy closed this as completed May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants