Re: [Exim] Simple syntax error?

Página Inicial
Delete this message
Reply to this message
Autor: Edgar Lovecraft
Data:  
Para: Exim users list
Assunto: Re: [Exim] Simple syntax error?
> Date: Wed, 24 Mar 2004 16:35:42 +0000 (GMT)
> From:        Chris Edwards <chris@???>
> To:        Paul Furness <paul.furness@???>
> CC:        Exim Users <exim-users@???>
> Subject:    Re: [Exim] Simple syntax error?

>
> On Wed, 24 Mar 2004, Paul Furness wrote:
>
> |   warn  message = X-Spam-Quarantine: Yes
> |         spam = nobody:true
> |         condition = ${if >{$spam_score_int}{60}{${if
> |                                   <{$spam_score_int}{80}{1}{0}}}{0}}
> Could use two conditions, as they must all be satisfied for the action
> to occur:

>
>   warn    message = X-Spam-Quarantine: Yes
>     spam = nobody:true
>     condition = ${if > {$spam_score_int}{60}{yes}{no}}
>     condition = ${if < {$spam_score_int}{80}{yes}{no}}

>

OR....
just set up the original one properly with an AND statement ;)

condition = ${if and { \
                 { >{$spam_score_int}{60} } \
                 { <{$spam_score_int}{80} } \
                     } \
            {1}{0}}
untested, but that should be proper :)
--


--EAL--