geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dain Sundstrom (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-5842) InternetAddress.parse fails on a valid address
Date Tue, 01 Mar 2011 23:53:36 GMT
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
            Reporter: Dain Sundstrom


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