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

Email address validation fails when mailbox name contains non-ASCII characters #221

Closed
lextoumbourou opened this Issue Jun 10, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@lextoumbourou

lextoumbourou commented Jun 10, 2015

Hi there,

It appears email address validation fails when non-ASCII characters are present in the mailbox name, which should be permitted as per RFC 6530. See example (tested on dev branch):

In [1]: from marshmallow import fields, Schema

In [2]: class Test(Schema):
   ...:     email = fields.Email()
   ...:

In [3]: t = Test()

In [4]: t.load({'email': u'josé@blah.com'})
Out[4]: UnmarshalResult(data={}, errors={'email': [u'"jos\xe9@blah.com" is not a valid email address.']})

Chars outside of ASCII seem to work fine in the domain though.

Thanks,

Lex

@sloria

This comment has been minimized.

Member

sloria commented Jun 10, 2015

Thanks for reporting @lextoumbourou . Pull requests welcome!

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