Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DAA5D10009 for ; Tue, 6 Jan 2015 13:40:26 +0000 (UTC) Received: (qmail 21543 invoked by uid 500); 6 Jan 2015 13:40:27 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 21492 invoked by uid 500); 6 Jan 2015 13:40:27 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 21305 invoked by uid 99); 6 Jan 2015 13:40:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 13:40:23 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.213.175 as permitted sender) Received: from [209.85.213.175] (HELO mail-ig0-f175.google.com) (209.85.213.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 13:39:54 +0000 Received: by mail-ig0-f175.google.com with SMTP id h15so4139190igd.14 for ; Tue, 06 Jan 2015 05:38:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=64B3SySM77w+rvrP1jDVsaJL+M/aEArNHzNSdMkuwLw=; b=GsolLWqYrpjUBjvYQ5b5Hi/c0/9ph9e/H7cHDFZV9LR3y/S0BIqTTAtESaYgsUx7qE dTz33zBb2pCk3Q0gP6N7WeQ81aUI85OupAVbyvggtr/J2vs7ZGhJGzzatSotSRyTzwVI yBzJZfVC5+FMMAbfRErG0tbz69TGbM1a4iNZdR2jUX02RpNJgzjRecwXD9wfej997c03 +76TYj6ECSUPbYxxtaL4eWoESnVWTf/OXwCiHa0qnuScGS5OJaQkEEBQf48VetYAmlBL DLTN4gRENYCPM21Lq2tku8sZ4LfqgGIqPTRsfErRkiQqb3n46Z3MeSGcoLt7whdNFzRc QT9g== X-Received: by 10.42.153.132 with SMTP id m4mr72133778icw.49.1420551502742; Tue, 06 Jan 2015 05:38:22 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.115.100 with HTTP; Tue, 6 Jan 2015 05:38:02 -0800 (PST) In-Reply-To: References: <1417196173692-5759776.post@n5.nabble.com> <1420537236032-5761363.post@n5.nabble.com> From: Claus Ibsen Date: Tue, 6 Jan 2015 14:38:02 +0100 Message-ID: Subject: Re: Mail - copyTo not working and MailBoxPostProcessAction not found To: "users@camel.apache.org" Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org 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 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 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: cibsen@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: cibsen@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/