geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dain Sundstrom (JIRA)" <>
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
             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 "" was an address
at Enron and is included in the Enron email corpus:

Exception in thread "main" javax.mail.internet.AddressException: Invalid local part (,2)
	at javax.mail.internet.AddressParser.illegalAddress(
	at javax.mail.internet.AddressParser.validateLocalPart(
	at javax.mail.internet.AddressParser.validateAddressSpec(
	at javax.mail.internet.AddressParser.validateSimpleAddress(
	at javax.mail.internet.AddressParser.parseSingleAddress(
	at javax.mail.internet.AddressParser.parseAddressList(
	at javax.mail.internet.InternetAddress.parse(
	at javax.mail.internet.InternetAddress.parse(
	at javax.mail.internet.InternetAddress.parse(

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message