[pLog-svn] Email Validator

Mark Wu markplace at gmail.com
Tue Jul 25 19:09:47 GMT 2006


Not yet. :(

But, please kindly leave this script  to me  :P

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of 
> Oscar Renalias
> Sent: Wednesday, July 26, 2006 2:59 AM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] Email Validator
> 
> Mark, did you ever finish the tests for the new emali validator code?
> 
> On 25 Jul 2006, at 15:36, Jon Daley wrote:
> 
> > 	I don't think so.  The name can be within quotes, yes, 
> and all sorts 
> > of crazy things can be in it, but that address doesn't 
> actually have 
> > an address.
> >
> > I think it would have to be like this to be valid:
> > "J. P. 's-Gravezande, a.k.a. The Hacker!" asd at server.com
> >
> > But, maybe that is wrong.
> >
> > You should have some invalid test cases also.
> >
> > On Tue, 25 Jul 2006, Ammar Ibrahim wrote:
> >
> >> Valid
> >> aa at gg.cc
> >> a_-a at gg.cc
> >> 1_a_-a at gg.cc
> >> 1_a_-.a at co.co
> >>
> >>
> >> Seems like the valid emails thing is strange and VERY 
> complicated!  
> >> according
> >> to the RFC
> >>
> >> "J. P. 's-Gravezande, a.k.a. The Hacker!"@server.com could 
> be a valid 
> >> email!!!
> >>
> >> Check http://www.quirksmode.org/js/mailcheck.html
> >>
> >> - Ammar
> >>
> >>
> >> On 7/23/06, Oscar Renalias <oscar at renalias.net> wrote:
> >>> Oh great, I was already doing it but please go ahead :-) 
> You can in 
> >>> fact start with your own made up cases... Ammar or Jon 
> can provide 
> >>> more complicated ones later on.
> >>> On 23 Jul 2006, at 18:44, Mark Wu wrote:
> >>> > Hi Oscar:
> >>> >
> >>> > If Ammar provide the test case... I will wirte the test 
> case for 
> >>> > tets runner ...
> >>> >
> >>> > I think I need some pratices for this.
> >>> >
> >>> > Mark
> >>> >
> >>> >> -----Original Message-----
> >>> >> From: plog-svn-bounces at devel.lifetype.net
> >>> >> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf 
> Of Oscar 
> >>> >> Renalias
> >>> >> Sent: Sunday, July 23, 2006 11:14 PM
> >>> >> To: plog-svn at devel.lifetype.net
> >>> >> Subject: Re: [pLog-svn] Email Validator
> >>> >>
> >>> >> I can create the test case(s), but can you please 
> provide a few 
> >>> >> "funny" email addresses that should work and some that
> >>> shouldn't?
> >>> >>
> >>> >> On 23 Jul 2006, at 17:34, Ammar Ibrahim wrote:
> >>> >>
> >>> >>> That's exactly what I did, it's a crazy regex! And the good
> >>> >> thing all
> >>> >>> the good adresses are passing, but some invalid adresses like 
> >>> >>> ammar at h.a are passing although no domain is one letter and
> >>> >> no tld is
> >>> >>> one letter. but I think this should be OK, anyhow, if you
> >>> think we
> >>> >>> need something more serious I can get the RFC one.
> >>> >>>
> >>> >>> On 7/23/06, Jon Daley <plogworld at jon.limedaley.com> wrote:
> >>> >>> There's a pretty crazy regexp.  How much did you test it?  I
> >>> don't
> >>> >>> want to actually go through a read it, but if you have
> >>> >> tested it with
> >>> >>> a half dozen addresses, good and bad, and it caught them
> >>> correctly,
> >>> >>> that is good enough for me.
> >>> >>>
> >>> >>> On Sun, 23 Jul 2006, Ammar Ibrahim wrote:
> >>> >>>
> >>> >>>> find the new code attached for your review. I didn't 
> go for the
> >>> >>> full RFC
> >>> >>>> validation.
> >>> >>>>
> >>> >>>> - Ammar
> >>> >>>>
> >>> >>>
> >>> >>> --
> >>> >>> Jon Daley
> >>> >>> http://jon.limedaley.com/
> >>> >>>
> >>> >>> Everything takes longer than you think.
> >>> >>> -- Murphy's Second Law
> >>> >>> _______________________________________________
> >>> >>> pLog-svn mailing list
> >>> >>> pLog-svn at devel.lifetype.net
> >>> >>> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>> >>>
> >>> >>> _______________________________________________
> >>> >>> pLog-svn mailing list
> >>> >>> pLog-svn at devel.lifetype.net
> >>> >>> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>> >>
> >>> >> _______________________________________________
> >>> >> pLog-svn mailing list
> >>> >> pLog-svn at devel.lifetype.net
> >>> >> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>> >
> >>> > _______________________________________________
> >>> > pLog-svn mailing list
> >>> > pLog-svn at devel.lifetype.net
> >>> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>> >
> >>> _______________________________________________
> >>> pLog-svn mailing list
> >>> pLog-svn at devel.lifetype.net
> >>> http://devel.lifetype.net/mailman/listinfo/plog-svn
> >>
> >
> > --
> > Jon Daley
> > http://jon.limedaley.com/
> >
> > You can fool too many of the people too much of the time.
> > -- James Thurber
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://devel.lifetype.net/mailman/listinfo/plog-svn
> >
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://devel.lifetype.net/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list