geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Forrest Xia (JIRA)" <j...@apache.org>
Subject [jira] Updated: (GERONIMO-5842) InternetAddress.parse fails on a valid address
Date Wed, 02 Mar 2011 16:16:36 GMT

     [ https://issues.apache.org/jira/browse/GERONIMO-5842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Forrest Xia updated GERONIMO-5842:
----------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s: 3.0
               Labels: javamail  (was: )

> InternetAddress.parse fails on a valid address
> ----------------------------------------------
>
>                 Key: GERONIMO-5842
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5842
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: mail
>    Affects Versions: 3.0
>            Reporter: Dain Sundstrom
>            Priority: Minor
>              Labels: javamail
>
> The InternetAddress parser is restricting the local part to not have multiple dots in
a row.  Although this may be rfc822 compliant, email address on the internet can and do have
multiple dot in the local part.  For example the email address "k..allen@enron.com" was an
address at Enron and is included in the Enron email corpus:
>  
> InternetAddress.parse("k..allen@enron.com");
> Exception in thread "main" javax.mail.internet.AddressException: Invalid local part (k..allen@enron.com,2)
> 	at javax.mail.internet.AddressParser.illegalAddress(AddressParser.java:1126)
> 	at javax.mail.internet.AddressParser.validateLocalPart(AddressParser.java:1287)
> 	at javax.mail.internet.AddressParser.validateAddressSpec(AddressParser.java:1232)
> 	at javax.mail.internet.AddressParser.validateSimpleAddress(AddressParser.java:1213)
> 	at javax.mail.internet.AddressParser.parseSingleAddress(AddressParser.java:440)
> 	at javax.mail.internet.AddressParser.parseAddressList(AddressParser.java:91)
> 	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:557)
> 	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:529)
> 	at javax.mail.internet.InternetAddress.parse(InternetAddress.java:517)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message