Re: [Exim] problem with nested condition

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nico Erfurth
Date:  
À: Lumpp, Wolfgang
CC: exim-users
Sujet: Re: [Exim] problem with nested condition
Lumpp, Wolfgang wrote:
> Hi,
>
> try to save mails, where spam-status is below or equal "1.0" AND
> message_size below !1M".
> (HAM mbox for bayesian filter)
> this one doesn't work:
> condition = ${if and { \
>                 or { \
>                     {match
> {$header_X-Spam-Status:}{\N.*hits=0\..*\N}} \
>                     {match
> {$header_X-Spam-Status:}{\N.*hits=1\.0.*\N}} \
>                     {match
> {$header_X-Spam-Status:}{\N.*hits=-.*\N}} \
>                 } \
>             {< {$message_size}{1M}} \
>             {yes}{no}}}


You didn't closed the and{ at the wrong place.
Replace the last line with
}{yes}{no}}

With your condition, {yes} and {no} were parts of the and-condition.

Nico