camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Comma in email names
Date Tue, 05 Oct 2010 08:27:50 GMT
Hi

Yeah could be the alternative way of including a display name is not
supporting comma.
Can you create a JIRA ticket?

Then we should only split by semi colon to be safe.



On Tue, Oct 5, 2010 at 9:27 AM, karthz <skarthz1@gmail.com> wrote:
>
> Hi,
>
> In camel-mail, if there's a comma in the "name" part of the email, like
>
> "Doe, John" <john.doe@mail.com>
>
> in Camel MailBinding, it gets split into two separate recipients
> "Doe" and "John" <john.doe@mail.com>
>
>        // we support that multi recipient can be given as a string separated
> by comma or semicolon
>         String[] lines = recipient.split("[,;]");
>         for (String line : lines) {
>             line = line.trim();
>             mimeMessage.addRecipients(asRecipientType(type), line);
>         }
>
> Isn't the above example a valid email? Is this a bug?
>
> Thanks.
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Comma-in-email-names-tp3198928p3198928.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message