[151160] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Programmers with network engineering skills

daemon@ATHENA.MIT.EDU (William Herrin)
Mon Mar 12 18:02:57 2012

In-Reply-To: <31CC8256-381A-4512-9628-8055D4B6A30A@delong.com>
From: William Herrin <bill@herrin.us>
Date: Mon, 12 Mar 2012 18:01:38 -0400
To: Owen DeLong <owen@delong.com>
Cc: nanog@nanog.org
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org

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 al=
ways just looked for the following:
>
> 1. =A0 =A0 =A0matches ^[^@]+@[A-Za-z0-0\-\.]+[A-Za-z]$
> 2. =A0 =A0 =A0The component to the right of the @ sign returns at least o=
ne 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



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


home help back first fref pref prev next nref lref last post