You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mime4j-dev@james.apache.org by "Oleg Kalnichevski (JIRA)" <mi...@james.apache.org> on 2014/06/14 22:06:02 UTC
[jira] [Resolved] (MIME4J-239) AddressBuilder#parseMailbox fails
when the local part contains a '@'
[ https://issues.apache.org/jira/browse/MIME4J-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved MIME4J-239.
--------------------------------------
Resolution: Invalid
bq. I understand why this might not be a bug,
Yet, you raised this issue not just as a bug, but a critical one.
The address is question is clearly invalid and moreover is simply ambiguous so there can be no right or wrong way of parsing it.
Oleg
> AddressBuilder#parseMailbox fails when the local part contains a '@'
> --------------------------------------------------------------------
>
> Key: MIME4J-239
> URL: https://issues.apache.org/jira/browse/MIME4J-239
> Project: James Mime4j
> Issue Type: Bug
> Affects Versions: 0.7.2
> Reporter: Nitsan Seniak
> Priority: Critical
>
> The following calls throws an exception:
> Mailbox add = AddressBuilder.DEFAULT.parseMailbox("joe@my company <jo...@company.com>");
> The exception is:
> org.apache.james.mime4j.field.address.ParseException: Atoms in domain names must be separated by '.'
> The expected result is (Hamcrest syntax):
> Mailbox add = AddressBuilder.DEFAULT.parseMailbox("joe@my company <jo...@company.com>");
> assertThat(add.getAddress(), is("joe.foo@company.com"));
> assertThat(add.getLocalPart(), is("joe@my company"));
--
This message was sent by Atlassian JIRA
(v6.2#6252)