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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Ian Eiloart
Date:  
À: exim-users, lee
CC: 
Sujet: Re: [exim] How to filter 'negatively' ?

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

> On Tue, 19 Jul 2005, lee wrote:
>
>>
>> Hello everyone,
>>
>> Is it possible to filter on a condition that a certain mail header does
>> not exist ?
>
> 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: "


> Philip
> (Currently teaching Exim in Bhutan)
>
>
> --
> 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




--
Ian Eiloart
Servers Team
Sussex University ITS