Re: What this means "(\w|-)+@\w"? [message #175012 is a reply to message #175001] |
Wed, 03 August 2011 08:55 |
alvaro.NOSPAMTHANX
Messages: 277 Registered: September 2010
Karma:
|
Senior Member |
|
|
El 02/08/2011 14:56, Peter H. Coffin escribió/wrote:
> Several years ago, I wrote an email validator that worked fairly will,
> and handled address cases that hadn't even been thought of yet. It used
> telnet to fake being a MTA to the MX of record for the domain through
> enough steps to ask if the receiving MTA would actually accept mail for
> the address, but stopping short of actually sending anything.
>
> It was, however, really slow, to start up. Once it had everything cached
> up, it could average a couple of email addresses being validated per
> second, but the first few hundred took a half hour or so.
>
> I wonder what happened to that code....
I've never understood the obsession for writing e-mail validation
routines that not only check for syntax errors but try to find out
whether the mailbox actually exists. Nobody would install a modem on the
server so it can be used to validate phone numbers...
Whatever, considering it as proof of concept, your code was a nice
exercise. Too bad it could not detect typos when the mistyped address
exists as well.
--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
|
|
|