You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Maurice <ma...@betzel.net> on 2013/12/03 11:49:52 UTC

Headers CamelFileNameConsumed and CamelFileLength in Mail

Dear Community,

after creating a error report with velocity in <onexception>, using some of
the camel exchange header values, and sending it as an HTML email it shows
the headers CamelFileNameConsumed and CamelFileLength on top of the mail
markup:

These are not represented in the .vm file in any way, so what am i missing?
The default report is working out great, without any addition of header
data.



--
View this message in context: http://camel.465427.n5.nabble.com/Headers-CamelFileNameConsumed-and-CamelFileLength-in-Mail-tp5744231.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Headers CamelFileNameConsumed and CamelFileLength in Mail

Posted by Maurice <ma...@betzel.net>.
I was using CXF and the following  did the trick.




--
View this message in context: http://camel.465427.n5.nabble.com/Headers-CamelFileNameConsumed-and-CamelFileLength-in-Mail-tp5744231p5744236.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Headers CamelFileNameConsumed and CamelFileLength in Mail

Posted by Claus Ibsen <cl...@gmail.com>.
You can rename any unwanted headers as shown here
http://camel.apache.org/how-to-remove-the-http-protocol-headers-in-the-camel-message.html

Or you can configure a custom header filter strategy on the mail
component / endpoints to filter what headers to include or not.

On Tue, Dec 3, 2013 at 11:49 AM, Maurice <ma...@betzel.net> wrote:
> Dear Community,
>
> after creating a error report with velocity in <onexception>, using some of
> the camel exchange header values, and sending it as an HTML email it shows
> the headers CamelFileNameConsumed and CamelFileLength on top of the mail
> markup:
>
> These are not represented in the .vm file in any way, so what am i missing?
> The default report is working out great, without any addition of header
> data.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Headers-CamelFileNameConsumed-and-CamelFileLength-in-Mail-tp5744231.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