Checking if email is valid
Simon Connah
simon.n.connah at protonmail.com
Sat Nov 4 05:01:32 EDT 2023
>
>
> On 2023-11-02, Simon Connah simon.n.connah at protonmail.com wrote:
>
> > Valid as in conforms to the standard. Although having looked at the
> > standard that might be more difficult than originally planned.
>
>
> Yes. Almost nobody actually implements "the standard" as in RFC 2822
> section 3.4.1 (which can contain, for example, non-printable control
> characters, and comments), nor is it particularly clear that they
> should. So while checking against "the spec" might sound right, it's
> highly unlikely that it's what you actually want. Would you really
> want to allow:
>
> (jam today) "chris @ \"home\""@ (Chris's host.)public.example
>
> for example? And would you be able to do anything with it if you did?
As I said in another post it would be interesting to see what broke when you tried to use an esoteric email address in the wild. Maybe when I'm bored :D.
Simon.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
URL: <https://mail.python.org/pipermail/python-list/attachments/20231104/cd629933/attachment.sig>
More information about the Python-list
mailing list