[Reportbug-maint] Bug#221548: Re: Bug#221548: check if email address is correct

chaica chaica at ohmytux.com
Mon Jun 15 17:51:26 UTC 2009


Hi Sandro,

Yes it is, that's why I tried something really simple, in order to
discard only obvious mistakes. I'm not aiming to manage the whole email
address possibilities.

Regexs available on the Internet need really careful thoughts because
they may check "really RFC2822 compliant" email addresses but some
isps/companies just don't care about RFCs. My first idea was to use an
official Python function  to check if an email address is correct but it
turns out there is no such function in official Python libraries. That's
why I thought something really permissive bug discarding obvious
mistakes could be useful. 

Here is a bug report where a user claims using an email address which is
not rfc2822 compliant for using reportbug : #310916

Bye,
Carl Chenet

> Hi Carl,
> thanks for the patch.
> 
> On Fri, Jun 5, 2009 at 01:05, chaica<chaica at ohmytux.com> wrote:
> > tags 221548 patch
> > thanks
> >
> > Hi,
> > Here is a patch to check if the provided email address is correct,
> > according to rfc2822 but not too restrictive. Controls only verify
> > really common specifications.
> 
> checking email validity is known to be "quite hard": wouldn't it be
> better to use a regular expression instead of the checks you used?
> there are some regexps already available on the net (some of them a
> really big!).
> 
> Cheers,
> -- 
> Sandro Tosi (aka morph, morpheus, matrixhasu)
> My website: http://matrixhasu.altervista.org/
> Me at Debian: http://wiki.debian.org/SandroTosi






More information about the Reportbug-maint mailing list