classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Classpathx-javamail] Legal email addresses for InternetAddress


From: Chris Burdess
Subject: Re: [Classpathx-javamail] Legal email addresses for InternetAddress
Date: Fri, 16 Jan 2004 11:16:21 +0100

Øyvind Harboe wrote:
I thought that the line below should throw an exception on *all* illegal
email addresses:

// this does not throw an exception
new InternetAddress("ab#surelynotavalidemailaddress##!!!!cdef");

looks like a well-formed (local) address to me. which part are you objecting to?

// this does throw an exception
new InternetAddress("@asdf");
new InternetAddress("asdf@");

these are not well-formed.

see rfc 2822, section 3.4 for details.
--
Chris Burdess




reply via email to

[Prev in Thread] Current Thread [Next in Thread]