Re: [Exim] Simple syntax error?

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Tor Slettnes
Datum:  
To: Paul Furness
CC: Exim Users
Betreff: Re: [Exim] Simple syntax error?
On Mar 24, 2004, at 08:17, Paul Furness wrote:
> # Add a "Quarantine" flag for spam scoring more than 6 but less than 8.
>   warn  message = X-Spam-Quarantine: Yes
>         spam = nobody:true
>         condition = ${if >{$spam_score_int}{60}{${if
>                                      <{$spam_score_int}{80}{1}{0}}}{0}}

>
> (the condition line isn't really split over 2 lines, but this is an
> email).
>
> The problem is that whatever the spam score actually is, this condition
> fails. Am I missing something really basic about the syntax of the
> rules?


You could always:

          condition = ${if > {$spam_score_int}{60}{true}{false}}
          condition = ${if < {$spam_score_int}{80}{true}{false}}


Conditions are "and"ed.

-tor