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

Should the email username maximum length (64) include the +alias or not ? #1025

Open
alexandre-paroissien opened this issue May 9, 2019 · 1 comment

Comments

@alexandre-paroissien
Copy link

From this thread I read that username of an email maximum length is 64, and the email maximum length is 254 (https://stackoverflow.com/questions/386294/what-is-the-maximum-length-of-a-valid-email-address)

But how about aliases that people can add after the user name? Such as username+alias@gmail.com (https://gmail.googleblog.com/2008/03/2-hidden-ways-to-get-more-from-your.html)

With gmail, while the username is limited to 64 characters, I was able to send emails successfully to addresses with username+alias exceeding 64 characters. And some people might wanna register to some apps with their aliased email.

Should these addresses be considered as valid? (As long as username doesn't exceed 64 and username+alias@domain doesn't exceed 254)

It seems this library currently compares username+alias against 64 instead

@profnandaa
Copy link
Member

Ref: #1007

I don't think it should include the + extension/alias part.

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

No branches or pull requests

3 participants