Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 54848 invoked from network); 4 Sep 2009 17:30:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Sep 2009 17:30:31 -0000 Received: (qmail 79635 invoked by uid 500); 4 Sep 2009 17:30:31 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 79592 invoked by uid 500); 4 Sep 2009 17:30:31 -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 79582 invoked by uid 99); 4 Sep 2009 17:30:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 17:30:31 +0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Sep 2009 17:30:19 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mjcbn-0008LD-0P for users@camel.apache.org; Fri, 04 Sep 2009 10:29:59 -0700 Message-ID: <25298622.post@talk.nabble.com> Date: Fri, 4 Sep 2009 10:29:59 -0700 (PDT) From: tide08 To: users@camel.apache.org Subject: Re: alternate body header in mail envelope In-Reply-To: <25298558.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sachin2_2k@yahoo.com References: <25284567.post@talk.nabble.com> <5380c69c0909032106n5a3edc61i619ba2c2c28e7713@mail.gmail.com> <5380c69c0909032107p21959573t71dc5d9bad2719ae@mail.gmail.com> <25298558.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Looks like this is fixed in 1.6.2-SNAPSHOT, any dates for release? Thanks! tide08 wrote: > > Sorry, this is for 1.6.1.. > > Not sure if removeHeader will help here. For ex: for below route: > > from("direct:start") > .processor(customProcessor) //does some processing and sets > mail_alternateBody > .to("smtp://mailhost") > > So I cannot remove header before it goes to mail component, and if I > remove it after mail component, it is already to mail envelope? > > Any other way to handle this? Let me know if I am confused/missing > something. > > Thanks! > > > Claus Ibsen-2 wrote: >> >> On Fri, Sep 4, 2009 at 6:06 AM, Claus Ibsen wrote: >>> On Thu, Sep 3, 2009 at 11:40 PM, tide08 wrote: >>>> >>>> I am setting mail_alternateBody header for multipart/alternative and >>>> the >>>> problem is that now that header shows up in mail envelope. Header is >>>> added >>>> by custom processor in the route before it comes to mail component. Is >>>> there >>>> a way to tell camel-mail to filter that header? I see that it uses >>>> filterHeaderStrategy but could not figure out how can I configure that? >>>> Any >>>> example? >>>> >>> >> >> You can use .removeHeader("mail_alternateBody") in the route DSL. >> >> >>> Remember to state which version of Camel you are using? >>> >>> I do think we have fixed this in 1.6.2-SNAPSHOT so try that version. >>> >>> >>>> Thanks >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/alternate-body-header-in-mail-envelope-tp25284567p25284567.html >>>> Sent from the Camel - Users mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> >>> -- >>> Claus Ibsen >>> Apache Camel Committer >>> >>> Open Source Integration: http://fusesource.com >>> Blog: http://davsclaus.blogspot.com/ >>> Twitter: http://twitter.com/davsclaus >>> >> >> >> >> -- >> Claus Ibsen >> Apache Camel Committer >> >> Open Source Integration: http://fusesource.com >> Blog: http://davsclaus.blogspot.com/ >> Twitter: http://twitter.com/davsclaus >> >> > > -- View this message in context: http://www.nabble.com/alternate-body-header-in-mail-envelope-tp25284567p25298622.html Sent from the Camel - Users mailing list archive at Nabble.com.