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

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: Ian Eiloart
CC: exim-users
Assunto: Re: [exim] How to filter 'negatively' ?
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. You would have
to say "(?m)^xxxx:" to enable "multiline mode" if you want to be
pedantic. Or use "\\N(^|\\n)xxxx:".

-- 
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