Return-Path: X-Original-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Delivered-To: apmail-james-mime4j-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2CE3511CC9 for ; Mon, 16 Jun 2014 07:37:04 +0000 (UTC) Received: (qmail 26751 invoked by uid 500); 16 Jun 2014 07:37:03 -0000 Delivered-To: apmail-james-mime4j-dev-archive@james.apache.org Received: (qmail 26612 invoked by uid 500); 16 Jun 2014 07:37:03 -0000 Mailing-List: contact mime4j-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mime4j-dev@james.apache.org Delivered-To: mailing list mime4j-dev@james.apache.org Received: (qmail 25827 invoked by uid 99); 16 Jun 2014 07:37:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2014 07:37:02 +0000 Date: Mon, 16 Jun 2014 07:37:02 +0000 (UTC) From: "Nitsan Seniak (JIRA)" To: mime4j-dev@james.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MIME4J-239) AddressBuilder#parseMailbox fails when the local part contains a '@' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MIME4J-239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032194#comment-14032194 ] Nitsan Seniak commented on MIME4J-239: -------------------------------------- Here's what I get with LenientAddressBuilder: Mailbox add = LenientAddressBuilder.DEFAULT.parseMailbox("joe@my company "); add.getAddress() => "joe@mycompany" add.getName() => null which is not the result I expect. I also tried (note the \"@\"): Mailbox add = LenientAddressBuilder.DEFAULT.parseMailbox("joe\"@\"my company "); add.getAddress() => "joe\"@\"mycompany" add.getName() => null which I think is not correct, is it? Or am I missing something? > 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 "); > 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 "); > 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)