Re: [Exim] Nested if conditions

Pàgina inicial
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
A: JP Kelly
CC: exim-users@exim.org
Assumpte: 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