nanog mailing list archives

Re: Programmers with network engineering skills


From: William Herrin <bill () herrin us>
Date: Mon, 12 Mar 2012 18:01:38 -0400

On Mon, Mar 12, 2012 at 5:32 PM, Owen DeLong <owen () delong com> wrote:
Whenever I've built code to check someone's email address on a form, I always just looked for the following:

1.      matches ^[^@]+@[A-Za-z0-0\-\.]+[A-Za-z]$
2.      The component to the right of the @ sign returns at least one A, AAAA, or MX record.

Hi Owen,

If I'm not mistaken, "B@M4N"@delong.com is a legitimately formatted
email address which fails part one of your test. Something along the
lines of @delong.com;bob@some.private.network is also supposed to be
legit though it's been so long since I looked at it that I may have
munged the format.

No, I don't allow these in systems I've designed either. Just sayin'.

Regards,
Bill Herrin



-- 
William D. Herrin ................ herrin () dirtside com  bill () herrin us
3005 Crane Dr. ...................... Web: <http://bill.herrin.us/>
Falls Church, VA 22042-3004


Current thread: