Re: [Exim] Nested if conditions

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nico Erfurth
Date:  
À: JP Kelly
CC: exim-users@exim.org
Sujet: Re: [Exim] Nested if conditions
On Sat, 21 Dec 2002, JP Kelly wrote:

> I can't seem to get this to work:
>
> spam_tag_router:
>    check_local_user
>    #   -  bypass bounce in system filter if spam flag is set to tag
>    condition = ${if and{eq{tag} {${lookup mysql {SELECT spam FROM passwd
> WHERE id='${local_part}@${domain}'}}} {!d
> ef:h_X-Spam-Flag:}} {yes}{no}}
>    driver = accept
>    transport = spamtag

>
> The nested conditions in my if statement keep giving me an error.
>

....
>
> What is the syntax to properly nest conditions?


Subconditions must be inside of {}

${if and{
          { eq{tag} {MYSQL-LOOKUP} }
          { !def:h_X-Spam-Flag: }
        }{yes}{no}
 }


ciao