Re: [Exim] 'and' subcondition evaluation

Etusivu
Poista viesti
Vastaa
Lähettäjä: Dr Andrew C Aitchison
Päiväys:  
Vastaanottaja: tsh
Kopio: exim-users
Aihe: Re: [Exim] 'and' subcondition evaluation
On Thu, 3 Apr 2003 tsh@??? wrote:

>
> In the following, I'm trying to make the execution of spam.csh
> conditional on the existence of the file
> /var/exim/userspamcontrol/$local_part/enablescan
>
> The docs say the subconditions are evaluated left-to-right and
> stop when the first one fails, but in this case spam.csh is getting
> executed regardless...
>
>
>   condition =   ${if and { \
>                            {exists{/var/exim/userspamcontrol/$local_part/enablescan}} \
>                            {eq \
>                                {${run{/bin/csh /usr/exim/spam.csh $local_part ${spool_directory} ${message_id}}{true}{true}}} \
>                                {true} \
>                            } \
>                          }{true}{true} \

>
> What am I doing wrong?


The spec says:
    When a false sub-condition is found, the following ones
    are parsed but not evaluated.


I wonder whether parsing "eq" causes the script to be run ?

--
Dr. Andrew C. Aitchison        Computer Officer, DPMMS, Cambridge
A.C.Aitchison@???    http://www.dpmms.cam.ac.uk/~werdna