You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've come across a few checks that the current email validator does not take into account. Sharing them below.
Local part of the email address should be less than 64 bytes. However, the validator returns True for john56789.john56789.john56789.john56789.john56789.john56789.john5@example.com
The name <email_id> format isn't supported, even though it is valid as per RFC 2822 (https://tools.ietf.org/html/rfc2822#page15). Example: Abigail <abigail@example.com> is unexpectedly returned as invalid
Multiple @ in the email aren't handled. Example of a valid email: Abigail<@a,@b,@c:abigail@example.com>
Activity
kvesteri commentedon Dec 27, 2018
PRs welcome.
micahcochran commentedon Jan 25, 2019
#22 has a few other examples in which the email validator could use some improvement.
ShivaShankerReddy commentedon Dec 12, 2019
@devikasondhi i will say everything is vaid other than 2. I don't think we should email along with name?
nandgator commentedon Mar 11, 2023
RFC 2822 is obsoleted by RFC 5322
maint: update `email` module