[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dcms-dev
Subject:    RE: [opencm-dev] regex
From:       Elin Sergey <SElin () protek ! com>
Date:       2002-11-06 6:46:58
[Download RAW message or body]

Agree. But if this email address will be used as notification address for
any changes (or something else) the opencm needs to be sure that it's at
last right formed (is that address really exists anywere or not is another
big question).

> -----Original Message-----
> From: Bruce Stephens [mailto:bruce+opencm@cenderis.demon.co.uk] 
> Sent: Tuesday, November 05, 2002 4:25 PM
> To: opencm-dev@smtp.opencm.org
> Subject: Re: [opencm-dev] regex
> 
> 
> Elin Sergey <SElin@protek.com> writes:
> 
> > Hi,
> >
> > I just look into opencm.c and saw folowing:
> >
> >     if (strchr(email, '@') == NULL)
> >       THROW(ExBadValue, "Invalid email address in certificate.");
> >
> > In my opinion, such check is not absolutely correct, as the 
> user can 
> > is deliberate whether or not write two or more signs "@" and such 
> > address will be true from the point of view of check. There 
> can be a 
> > best way here - usage of regex library?
> 
> Correctly checking for the validity of an email address is 
> quite subtle.  It's also probably not that 
> important---checking for a single '@' will catch the majority 
> of typos (that are catchable at all). 
> _______________________________________________
> opencm-dev mailing list
> opencm-dev@smtp.opencm.org 
> http://www.opencm.org/mailman/listinfo/opencm-dev
> 
_______________________________________________
opencm-dev mailing list
opencm-dev@smtp.opencm.org
http://www.opencm.org/mailman/listinfo/opencm-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic