Validating EMailAdresses for syntactical correctness

Grant Edwards grante at visi.com
Mon Jan 28 23:16:48 CET 2002


In article <871ygap2w0.fsf at c0re.bewaff.net>, Doobee R. Tzeck wrote:

> It is able to validate all valid RfC 822 Addresses like
> 
> Muhammed.(I am  the greatest) Ali @(the)Vegas.WBA
> "\"quote.and space"@[].[\[].yp.to    (Might work)
><@gateway.af.mil:God at heaven.af.mil>
><mailto:@c0re.jp>
> 
> this are all valid addresses. RfC 822 address parsing -which is
> the essential for finding "valid" addresses is sheer horror.

It could be worse. You could have to parse addresses with mixed
822 and uucp bang notation (and it's various offspring).

Anyway, the correlation between being a "valid" 822 address and
whether mail sent to that address will end up anywhere useful
is probably small enough that it's not worth the effort.


-- 
Grant Edwards                   grante             Yow!  The Osmonds! You are
                                  at               all Osmonds!! Throwing up
                               visi.com            on a freeway at dawn!!!



More information about the Python-list mailing list