I am using camel 2.7.4

When I do a route like:
<route>
  <from uri=&quot;timer://...
  &lt;to uri=&quot;http://...
  &lt;to uri=&quot;smtp://...
&lt;/route>

This works fine and the email contains the html from the specified http call
in it's message body.

However, when I try to only send the email based on a filter (or choice),
the filter works as to whether the email is sent but the email no longer has
the content from the http call in it's message body.

<route>
  <from uri=&quot;timer://...
  &lt;to uri=&quot;http://...
  &lt;filter>
    <language
language="beanshell">!request.getBody(String.class).contains("SOME_VALUE")</language>
    <to uri=&quot;smtp://...
  &lt;/filter>
</route>

How can I get this to work?

--
View this message in context: 
http://camel.465427.n5.nabble.com/Message-body-lost-in-email-when-filtering-tp4978500p4978500.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to