Re: [exim] "mail to" for rewriting a body ?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: TN
CC: exim-users
Subject: Re: [exim] "mail to" for rewriting a body ?
On Wed, 25 May 2005, TN wrote:

> Alas I'm still getting both emails discarded with this filter :
> # Exim filter
>
> if $header_from: contains "someone@???" and
> $message_body is not "This email was intercepted"
> then
> seen mail to $header_to from $header_from subject $header_subject
> text "This email was intercepted"
> endif
>
>
> BUT - if I change the condition to be more general with 'and
> $message_body does not contain "This email was intercepted"....' then
> the filter works as I intended. So the $message_body must not be
> matching exactly somehow ?


There's a newline at the end of the line, which will have been turned
into a space for $message_from.

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book