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: Can I split attachments?
Date Wed, 04 Jul 2012 16:31:11 GMT
On Wed, Jul 4, 2012 at 6:20 PM, hairinwind <robin.yao@gmail.com> 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: http://camel.465427.n5.nabble.com/Can-I-split-attachments-tp5715437p5715496.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message