[Mimedefang] perl expression to catch bad recipient addresses?
David F. Skoll
dfs at roaringpenguin.com
Fri Nov 23 19:09:51 EST 2001
On Sat, 24 Nov 2001, Tony Nugent wrote:
> Has anyone got a perl expression that is failsafe to catch a badly
> malformed recipient email address? (ie, to check that an email
> address is at least syntatically valid).
RFC2822 (http://www.ietf.org/rfc/rfc2822.txt) specifies the
legal format for recipient addresses (page 16). It should be
possible to write a Perl regular expression based on the RFC.
--
David.
More information about the MIMEDefang
mailing list