RE: [Exim] Boolean evaluation in condition

Pàgina inicial
Delete this message
Reply to this message
Autor: John Horne
Data:  
A: Exim users
Assumpte: RE: [Exim] Boolean evaluation in condition
On 16-Feb-01 at 09:10:53 Dmitry Shikut wrote:
>     There is a simple test condition in my configure:

>
>     ${if and{\

>

{exists{/usr/local/etc/exim/domains/${domain:$1}/passwd}}\
>         {eq{$2}{${extract{1}{:}{\

>
> ${lookup{${local_part:$1}lsearch{/usr/local/etc/exim/domains/${domain:$1}/p
> a
> sswd}{$value}{fail}}}\
>         }}}}\
>     }{yes}{no}}

>

My guess is that you may want to include a
'require_files=/usr/local/etc/exim/domains/${domain:$1}/passwd' on the
director. I seem to remember that we had similar problems. My understanding
is that despite the exists failing the other 'and' parts are still scanned
and hence look for the file. I could be wrong about that, but I think the
manual mentions about this (under 'and').

John.

------------------------------------------------------------------------
John Horne, University of Plymouth, UK           Tel: +44 (0)1752 233914
E-mail: jhorne@???
PGP key available from public key servers