Hi

See this page
http://camel.apache.org/mail.html

The section _How to split a mail message with attachments_


On Wed, Jul 4, 2012 at 2:21 AM, hairinwind <[email protected]> wrote:
> I need poll emails and then process the attachments.
>
> I saw some code like this in RouterBuilder
>
> <code>
> from("direct:start")
> .split(body())
> .log("Split line ${body}")
> .to("mock:split");
> </code>
>
> What i want to do is
>
>
> <code>
> from("email address")
> .split(attachments())
> .to("...");
> </code>
>
> Unfortunately, attachments() is not a method in BuilderSupport.
>
> How can I do that? I want to avoid using
> getExchange().getIn().getAttachments() those kind of API...
>
> Thanks
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Can-I-split-attachments-tp5715437.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

Reply via email to