Hi.

[...]
On Wed, Sep 15, 1999 at 06:39:04PM +0000, you wrote
> function ValidateEmail(theinput)
> {
>  s=theinput.value
>  if(s.search)
>  {
>   return (s.search(new 
>RegExp("^([a-z0-9_]|\-|\\\.)+@(([a-z0-9_]|\-)+\\\.)+[a-z]{2,4}$","gi"))>=0)

You know that this check rejects emails which are RFC 821 compliant?

For example: 
Hans\,[EMAIL PROTECTED]
[EMAIL PROTECTED]
"Hans Muster"@test.de
Hans*[EMAIL PROTECTED]
[EMAIL PROTECTED]
...
are all valid, but would be rejected.

I agree, that these email address are not really common, but I see no
reason to ban them (e.g. '=' in the local part is used by qmail based
setupts, which gets quite common in the Linux world today).

Not allowed in the local part (the part left of @) are only '
<>()[]\.,;:@"' (everything between the single quotes "'"), control
codes and not 7-Bit clean characters (which are handled fine by most
mail relays today, anyway). And these are also allowed if escaped by
prepending a backslash '\', or enclosing them in double quotes '"'
(except for newline and carriage return which have to be escaped
anyway).

Bye,

        Benjamin.

PS: Just curious: is there a reason to write ([a-z0-9_]|\-|\\\.)
instead of [a-z0-9_.-] ?

-- Attached file included as plaintext by Listar --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v0.9.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE34Xq8mTjUS0P7KdYRAUMpAJ9xXgbm9tbk1pXvpZAxNaRvpcmJwACgq7AU
G0cGJlQCaPegx0UZPIIrayY=
=2kp+
-----END PGP SIGNATURE-----


____________________________________________________________
Voyager Mailing List - Info & Archive: http://www.vapor.com/
For Listserver Help: <[EMAIL PROTECTED]>, "HELP"
To Unsubscribe: <[EMAIL PROTECTED]>, "UNSUBSCRIBE"

Reply via email to