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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ian Eiloart
Date:  
À: exim-users
CC: 
Nouveaux-sujets: Re: [exim] How to filter 'negatively' ? / $message_headers
Sujet: 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