3 ms·
Please note that RFC822 also covers some unusual forms of writing an address; all of the following are correct addresses: * John Doe <john.doe@example.com> *
by xentronium 14y ago
Please note that RFC822 also covers some unusual forms of writing an address; all of the following are correct addresses:
* John Doe <john.doe@example.com>
* foo:a@b.example,c@d.example,e@f.example;
* john.doe@example.com (John Doe)
See also the excellent explanation by Jukka Korpela for more details: http://www.cs.tut.fi/~jkorpela/rfc/822addr.html http://www.cs.tut.fi/~jkorpela/rfc/822addr.html
- deweerdt 14y agoYes, absolutely. When people want to validate an email address, it's more likely they're referring to the SMTP envelope address: http://tools.ietf.org/html/rfc5321#section-4.1.2 http://tools.ietf.org/html/rfc5321#section-4.1.2 RFC 822 (RFC 5322 in its more recent incarnation) refers to the From: header in the email, RFC 5321 refers to the address used in the 'MAIL FROM:' (and RCPT) SMTP command.
- dfox 14y agoand if i remember correctly, this regexp should also accept foovax!example.com!john.doe, which is certainly something you do not want to accept