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 5E691E3B3 for ; Fri, 11 Jan 2013 08:40:49 +0000 (UTC) Received: (qmail 13548 invoked by uid 500); 11 Jan 2013 08:40:49 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 13245 invoked by uid 500); 11 Jan 2013 08:40:48 -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 13207 invoked by uid 99); 11 Jan 2013 08:40:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 08:40:47 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 08:40:41 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TtaA1-0000Vh-Cb for users@camel.apache.org; Fri, 11 Jan 2013 00:40:21 -0800 Date: Fri, 11 Jan 2013 00:40:21 -0800 (PST) From: Arjen Duursma To: users@camel.apache.org Message-ID: <1357893621382-5725353.post@n5.nabble.com> In-Reply-To: References: <1325845928486-5125167.post@n5.nabble.com> <1325862085848-5125742.post@n5.nabble.com> <1326183106692-5133615.post@n5.nabble.com> <1326192953250-5133857.post@n5.nabble.com> Subject: Re: How to send a templated mail with attachment? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org The same (missing attachments) seems to be happening to other components as well. I have a route retrieving reports on failed mail attempts (multipart/report) from a pop3 component. Using a xslt transform for generating the actual body before remailing it. After 'saving' the relevant information as an attachement (tested and works) I try to enrich the message based on some identifier from the subject of the original mail. I do this by including: After this route, the attachements are gone :-( I modified the route to call this route using the 'enrich' pattern using a generic "ReplaceBodyAggregation". This fails due to a NullPointerException in the XmlConverter during the xslt rendering of the replaced body. The system doesn't seem to be able to find typeconverters in the CamelContext. If I make the ReplaceBodyAggregation less generic by specifying the expected body class as "Document.class", it suddenly works. -- View this message in context: http://camel.465427.n5.nabble.com/How-to-send-a-templated-mail-with-attachment-tp5125167p5725353.html Sent from the Camel - Users mailing list archive at Nabble.com.