[
https://issues.apache.org/jira/browse/GERONIMO-6533?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14176233#comment-14176233
]
Mark Struberg commented on GERONIMO-6533:
-----------------------------------------
Hi Hendrik!
I did not look closely but I remember a few pitfalls from Sigfried Göschls work
over at commons-email. E.g. we also need to look at rfc-2606
https://tools.ietf.org/html/rfc2606
{quote}
...
To safely satisfy these needs, four domain names are reserved as
listed and described below.
.test
.example
.invalid
.localhost
".test" is recommended for use in testing of current or new DNS
related code.
".example" is recommended for use in documentation or as examples.
".invalid" is intended for use in online construction of domain
names that are sure to be invalid and which it is obvious at a
glance are invalid.
{quote}
> [Geronimo Javamail] InternetAddress should throw exception in strict mode for
> invalid address
> ---------------------------------------------------------------------------------------------
>
> Key: GERONIMO-6533
> URL: https://issues.apache.org/jira/browse/GERONIMO-6533
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: mail
> Reporter: Arnaud MERGEY
>
> Unlike Oracle Javamail to Geronimo Javamail implementation, Geronimo Javamail
> accept invalid emails even in strict mode
> Executing;
> <code> javax.mail.internet.InternetAddress("a",true);</code>
> fails throwing AddressException with Oracle Javamail, but succeed with
> Geronimo Javamail
> validate() succeed as well, it should throw an exception when address is not
> an email address
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)