On Wed, Jul 4, 2012 at 6:20 PM, hairinwind <[email protected]> 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: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
