Hi btw for postProcessAction=myPostProcess you should use postProcessAction=#myPostProcess.
See referring beans from uris section at http://camel.apache.org/how-do-i-configure-endpoints.html On Fri, Nov 28, 2014 at 6:36 PM, A-Light <angelo.leg...@outlook.com> wrote: > Hi all, > I'm using a route that gets new messages from an imap consumer. Something > like this: > > <from > uri="imap://mailserver?username={{usr}}&password={{pwd}}&mapMailMessage=false"/> > <bean ref=emailSerializer"> > <to uri="activemq:queue:mailQueue"/> > > The emails get processed and being sent to the queue, passing from unread to > read (UNSEEN to SEEN) but what I would like to do is moving the processed > email into a "processed" folder on the mailbox. > > I tried to get this in two ways, according to the documentation of the Camel > Mail component: > - added the copyTo=processed parameter to the imap uri, but it seems to have > no effect (the folder processed exists in the mailbox) > - adding the postProcessAction=myPostProcess where myPostProcess has to > implement the org.apache.camel.component.mail.MailBoxPostProcessAction but: > 1) the MailBoxPostProcessAction is not recognized as an existent interface > 2) the postProcessAction is not recognized as a valid parameter > > I am using Camel 2.14.0. > > Can you please help me with this? > Is there some configuration that I am missing? > > Thank you, > A. > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Mail-copyTo-not-working-and-MailBoxPostProcessAction-not-found-tp5759776.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/