Checking if email is valid

Thomas Passin list1 at tompassin.net
Fri Nov 3 15:12:39 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/




More information about the Python-list mailing list