Re: [exim] How to filter 'negatively' ?

Top Page
Delete this message
Reply to this message
Author: Ian Eiloart
Date:  
To: exim-users
CC: 
New-Topics: Re: [exim] How to filter 'negatively' ? / $message_headers
Subject: Re: [exim] How to filter 'negatively' ?


--On 20 July 2005 11:46:29 +0100 Philip Hazel <ph10@???> wrote:

> On Wed, 20 Jul 2005, Ian Eiloart wrote:
>
>>
>> > if $message_headers does not contain "xxxx:" then ...
>>
>> Ooh, isn't this going to generate a number of false positives? Should we
>> not match on the start of the line? Can we say this?:
>>
>>    if $message_headers matches "^xxxx: "

>
> If xxxx is pretty unique, the false positive risk is low.


True, but the false positives might be very important. For example, if xxxx
is X-spam this subject might cause a message to be /dev/nulled:

Subject: What's that "X-spam:" header about, then?

> You would have
> to say "(?m)^xxxx:" to enable "multiline mode" if you want to be
> pedantic. Or use "\\N(^|\\n)xxxx:".





--
Ian Eiloart
Servers Team
Sussex University ITS