Closed Thread Icon

Preserved Topic: Email address RFC (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=18344" title="Pages that link to Preserved Topic: Email address RFC (Page 1 of 1)" rel="nofollow" >Preserved Topic: Email address RFC <span class="small">(Page 1 of 1)</span>\

 
hlaford
Bipolar (III) Inmate

From: USA! USA! USA!
Insane since: Oct 2001

posted posted 06-13-2002 19:21

Can someone point me to an appropriate RFC regarding the the format of email addresses? I need to build validation that supports the standards, but I can't seem to locate the exact bit of info I need.

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 06-14-2002 20:36

I feel bad nobody answered this. I have no answers for you. I always thought it was something like "username" @ "domain", but I'm guessing you already knew that. ;-) What exactly are you trying to do? Maybe that would help people help you.

Your pal, -doc-

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 06-14-2002 20:39

OK, I tjust tried a google search using the search terms "email" and "RFC", and got this link to all the email RFCs as the first hit...

Link: http://www.livinginternet.com/?e/em_rfc.htm

I also found this link off of that page, for the "Internet Mail Consortium"...

Link: http://www.imc.org/mail-standards.html

Google is your friend.

Your pal, -doc-

hlaford
Bipolar (III) Inmate

From: USA! USA! USA!
Insane since: Oct 2001

posted posted 06-14-2002 22:06

I found a couple links that I've been using (from Google). I've been hoping for a single regex to handle email formats (including quoted strings and IP addresses). Up until now, I've been using a simpler regex which included only the basics (handling 99.99% of addresses we've dealt with).

http://www.cs.tut.fi/~jkorpela/rfc/822addr.html
http://www.w3.org/Protocols/rfc822/rfc822.txt

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 06-14-2002 22:54

The bottom one, http://www.w3.org/Protocols/rfc822/rfc822.txt, would be the one you'd really want to pay attention to, since it's from the W3.

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 06-14-2002 23:38

There's some O'Reilly book that has a regular expression matching *every* email format... I think it's either Mastering Regular Expressions or the Perl Cookbook... I forget though. Hold on, let me check if my perl book has it...

Ah, my CGI Programming with Perl book says that you can find it in Mastering Regular Expressions, but it fits a really old standard (RFC 822) which is, in fact, still standard, but it matches some weird things. It's correct though. Anyway, you might take a look at that.

Petskull
Maniac (V) Mad Scientist

From: 127 Halcyon Road, Marenia, Atlantis
Insane since: Aug 2000

posted posted 06-15-2002 04:17

"CGI Programming with Perl"

Oooooo, I have that one!


Harmonizing new illusions...
ICQ: 67751342

hlaford
Bipolar (III) Inmate

From: USA! USA! USA!
Insane since: Oct 2001

posted posted 06-18-2002 15:33

Under a bit of dust on my shelf I found my copy of Mastering Regular Expressions. Great tip.

My guess is that JavaScript won't support the full 6,598-byte regex since it lacks the look-aheads. Maybe we'll just plug in the pieces we need when we need them.

I'm fairly certain we can use it in server-side code--even in VB, believe it or not.

« BackwardsOnwards »

Show Forum Drop Down Menu