Re: [exim] and/or

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nico Erfurth
Date:  
À: Tom Bombadil
CC: exim-users
Sujet: Re: [exim] and/or
Tom Bombadil schrieb:

> Sorry for my stupidity here, but what does "parse" and "evaluate"
> actually mean in this context?


You need to parse something before you can evaluate/execute it. ;)
Parsing just tries to read the structure, evaluation does the actual logic.

i.e

condition = ${if and {\
                {eq {$local_part}{grlists}}\
                {eq {$domain}{gmail.com}}\
              }{Yes}{no}}


When exim encounters this and local_part is not "grlists", it still has
to read (parse) the second subcondition but it does not need to actually
do the evaluation/comparsion (eq) because the and-condition can't be
true anymore. It has to parse it, so it knows where it ends and where
the {Yes}{No} part starts.

Nico