Re: [Exim] Multiple conditions in filter?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: j2
Cc: exim-users
Asunto: Re: [Exim] Multiple conditions in filter?
On Wed, 13 Aug 2003, j2 wrote:

> if
>         ($h_X-Spam-Score: contains "++"
> or
>         "${if def:h_X-Spam-Flag {def}{undef}}" is "def")
> and not
>         ${lookup{$return_path}lsearch{/home/j2/etc/mail/whitelist}{yes}} is "yes"
> then
>         save $home/Maildir/.Trash/
>         finish
> endif

>
> Now, i would like to do is add another clause to the "and not" part,


Use parentheses.

and not
(

<condition1> or <condition2> ....

)


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