[
https://issues.apache.org/jira/browse/MIME4J-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14031706#comment-14031706
]
Oleg Kalnichevski commented on MIME4J-239:
------------------------------------------
Field parsers are pluggable. Mime4j comes with two implementations: strict and
lenient. If none of them works for you there is always an option of developing
your own custom implementation that suits your application's specific needs.
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
> <[email protected]>");
> 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
> <[email protected]>");
> assertThat(add.getAddress(), is("[email protected]"));
> assertThat(add.getLocalPart(), is("joe@my company"));
--
This message was sent by Atlassian JIRA
(v6.2#6252)