Hi Ah also always check the documentation http://camel.apache.org/mail
That options is a new option in Camel 2.15 onwards. So you cannot use it with an older Camel release. On Tue, Jan 6, 2015 at 2:37 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > Hi > > See this unit test > https://github.com/apache/camel/blob/master/components/camel-mail/src/test/java/org/apache/camel/component/mail/MailPostProcessActionTest.java > > On Tue, Jan 6, 2015 at 10:40 AM, A-Light <angelo.leg...@outlook.com> wrote: >> Hi Claus, >> thanks for the info! But it looks like the problem is somewhere else. >> >> I tried to: >> - create a class that implements >> org.apache.camel.component.mail.MailBoxPostProcessAction but that interface >> is not existent, so the compiler says >> "org.apache.camel.component.mail.MailBoxPostProcessAction cannot be resolved >> to a type"; >> - tried to enable the post process on an object that doesn't implement that >> interface, called emailPostProcess, by adding the >> postProcessAction=#emailPostProcess parameter but the compiler says: >> >> org.apache.camel.RuntimeCamelException: >> org.apache.camel.FailedToCreateRouteException: Failed to create route >> test-mail: Route(test-mail)[[From[{{as-props.in-protocol}}:/... because of >> Failed to resolve endpoint: >> imap://mailserver?mapMailMessage=false&password={{pwd}}&postProcessAction=%23emailPostProcess&username={{usr}} >> due to: Failed to resolve endpoint: >> imap://mailserver?mapMailMessage=false&password={{pwd}}&postProcessAction=%23emailPostProcess&username={{usr}} >> due to: There are 1 parameters that couldn't be set on the endpoint. Check >> the uri if the parameters are spelt correctly and that they are properties >> of the endpoint. Unknown parameters=[{postProcessAction=#emailPostProcess}] >> >> Is this due to the missing interface implementation on my "emailPostProcess" >> class or there is something else missing somewhere? >> >> Thank you for your help! >> A. >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Mail-copyTo-not-working-and-MailBoxPostProcessAction-not-found-tp5759776p5761363.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/ -- 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/