Yes, please create a jira. The problem is the simple parsing that doesn't account for commas (or semicolons) within quotes. We need to fix the parsing.
Hadrian On Oct 5, 2010, at 4:27 AM, Claus Ibsen wrote: > 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 <skart...@gmail.com> wrote: >> >> Hi, >> >> In camel-mail, if there's a comma in the "name" part of the email, like >> >> "Doe, John" <john....@mail.com> >> >> in Camel MailBinding, it gets split into two separate recipients >> "Doe" and "John" <john....@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