camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: Can I split attachments?
Date Wed, 04 Jul 2012 16:31:11 GMT
On Wed, Jul 4, 2012 at 6:20 PM, hairinwind <> wrote:
> Yes, I already read that section before I posted my question. The problem is
> that after splitting, the attachment is still in attachment of the message.
> My attachment in email is csv file and I want to unmarshall them, like this
> from(email address).split(new
> SplitAttachmentsExpression()).unmarshal().csv().split(body())...
> I guess the unmarshal() will process the body of the message, not the
> attachment, correct?

Yes data format works on message body only.

You need to transform the message before the unmarshal, such as moving
the file attachment to the message body etc.

> Thanks,
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Twitter: davsclaus, fusenews
Author of Camel in Action:

View raw message