in reply to Practical e-mail address validation
What I would rather see on CPAN is a email address validation that allows you to pick and choose (as well as add your own) what rules you want to play by. For instance "do not accept email address that require an open relay to work" or "accept email address that have a period before @ in violation of the RFC".
Now on to your problem at hand. Are the following email addresses "equivalent"?
It turns out that 1 and 3 are but 2 is not. You have already mentioned this. I only bring it up again to point out another "rule" for this theoretical CPAN module - to consider case in the user portion of the address. Here is another one that may be difficult to tell:1. firstname.lastname@example.org 2. Foo@bar.com 3. foo@BAR.com
These are functionally equivalent because it expects the MTA at asdf.com to relay the mail to bar.com.1. email@example.com 2. firstname.lastname@example.org # corrected
Cheers - L~R
Re: Practical e-mail address validation
Select or Download Code
Replies are listed 'Best First'.
|Re^2: Practical e-mail address validation (flex)|
by tye (Sage) on Sep 13, 2008 at 17:12 UTC
by tye (Sage) on Sep 13, 2008 at 18:20 UTC
by Limbic~Region (Chancellor) on Sep 13, 2008 at 20:36 UTC