Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #2715
| From | "Peter H. Coffin" <hellsop@ninehells.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: What this means "(\w|-)+@\w"? |
| Date | 2011-08-03 08:46 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <slrnj3ik9c.icc.hellsop@nibelheim.ninehells.com> (permalink) |
| References | (1 earlier) <iv68tf$fla$1@dont-email.me> <mr-0FA206.10061702082011@News.Individual.NET> <j18h8j$eg3$1@dont-email.me> <slrnj3fsv8.icc.hellsop@nibelheim.ninehells.com> <j1b2eb$52a$1@dont-email.me> |
On Wed, 03 Aug 2011 10:55:32 +0200, ?lvaro G. Vicario wrote: > 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... Heh. In North America, there's a comparable data file to this kind of thing available from nanpa.org that (while not getting down to the actual phone number level) will tell you whether a given combination of area code and exchange (the M and N parts of +1 MMM-NNN-XXXX) are valid, in service, on hold, pending allocation, and who runs them so you can get a good idea of whether they're a land line, a mobile, a specialty service, and sometimes even a stab at whether it's a business or residence. EG: An owning organization of "AT&T BUSINESS SVCS" is probably not someone's residence, and "ACS WIRELESS DBA ALL-TEL" is probably a mobile. So, yeah, you CAN do it with phone numbers and it doesn't even require a modem. > 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. Not if the typo led to another valid address, no. If the typo led to the mail failing, it would be caught. The "fix commonly mistyped domains" part never got written, either. The idea behind that is to process only the failures and remap to big services (yaho.com to yahoo.com, etc.), then re-test. -- "Only Irish coffee provides in a single glass all four essential food groups: alcohol, caffeine, sugar, and fat." -Alex Levine
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What this means "(\w|-)+@\w"? zhang yun <bigzhangyun@gmail.com> - 2011-07-07 06:58 -0700
Re: What this means "(\w|-)+@\w"? Michael Fesser <netizen@gmx.de> - 2011-07-07 17:39 +0200
Re: What this means "(\w|-)+@\w"? Eli the Bearded <*@eli.users.panix.com> - 2011-07-07 18:23 +0000
Re: What this means "(\w|-)+@\w"? Michael Fesser <netizen@gmx.de> - 2011-07-07 21:12 +0200
Re: What this means "(\w|-)+@\w"? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-07-07 21:12 +0200
Re: What this means "(\w|-)+@\w"? Eli the Bearded <*@eli.users.panix.com> - 2011-07-08 06:05 +0000
Re: What this means "(\w|-)+@\w"? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-07-08 08:42 +0200
Re: What this means "(\w|-)+@\w"? Sandman <mr@sandman.net> - 2011-08-02 10:06 +0200
Re: What this means "(\w|-)+@\w"? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-08-02 11:50 +0200
Re: What this means "(\w|-)+@\w"? "Peter H. Coffin" <hellsop@ninehells.com> - 2011-08-02 07:56 -0500
Re: What this means "(\w|-)+@\w"? Eli the Bearded <*@eli.users.panix.com> - 2011-08-02 20:53 +0000
Re: What this means "(\w|-)+@\w"? "Peter H. Coffin" <hellsop@ninehells.com> - 2011-08-03 08:32 -0500
Re: What this means "(\w|-)+@\w"? "Álvaro G. Vicario" <alvaro.NOSPAMTHANX@demogracia.com.invalid> - 2011-08-03 10:55 +0200
Re: What this means "(\w|-)+@\w"? "Peter H. Coffin" <hellsop@ninehells.com> - 2011-08-03 08:46 -0500
Re: What this means "(\w|-)+@\w"? Sandman <mr@sandman.net> - 2011-08-03 00:21 +0200
Re: What this means "(\w|-)+@\w"? Eli the Bearded <*@eli.users.panix.com> - 2011-08-03 07:45 +0000
Re: What this means "(\w|-)+@\w"? Sandman <mr@sandman.net> - 2011-08-03 10:02 +0200
Re: What this means "(\w|-)+@\w"? Eli the Bearded <*@eli.users.panix.com> - 2011-08-05 00:05 +0000
csiph-web