|
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* illegalemail 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
[Prev in Thread] | Current Thread | [Next in Thread] |