Checking if email is valid
Simon Connah
simon.n.connah at protonmail.com
Sat Nov 4 04:51:14 EDT 2023
>
> On 11/3/2023 6:51 AM, Jon Ribbens via Python-list wrote:
>
> > On 2023-11-03, Chris Angelico rosuav at gmail.com wrote:
> >
> > > On Fri, 3 Nov 2023 at 12:21, AVI GROSS via Python-list
> > > python-list at python.org wrote:
> > >
> > > > My guess is that a first test of an email address might be to see if
> > > > a decent module of that kind fills out the object to your
> > > > satisfaction. You can then perhaps test parts of the object, rather
> > > > than everything at once, to see if it is obviously invalid. As an
> > > > example, what does user at alpha.......com with what seems to be lots of
> > > > meaningless periods, get parsed into?
> > >
> > > What do you mean by "obviously invalid"? Have you read the RFC?
> >
> > What do you mean by 'What do you mean by "obviously invalid"?'
> > Have you read the RFC?
>
>
> About reading the RFC, there's this ... but read the comments too ...
>
> https://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.aspx/
>
>
Wow. I'm half tempted to make a weird email address to see how many websites get it wrong.
Thank you for the link.
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/58b7c62a/attachment.sig>
More information about the Python-list
mailing list