Re: [Exim] Boolean evaluation

Top Pagina
Delete this message
Reply to this message
Auteur: Dmitry Shikut
Datum:  
Aan: Exim users
Onderwerp: Re: [Exim] Boolean evaluation
> > When 'subcond1 = FALSE', 'subcond2' do not participate in 'and'
> > condition...
> Exim does.

    That's great...


> >     How can I resolve this problem?

>
> I already posted the solution. You are missing a "}" at a crucial point
> in your string.

    I'm received this solution... There is no '}' in my example... That's
right...


    But look at this example:


${if
and{{exists{/usr/local/etc/exim/domains/virus22.com/passwd}}{eq{qwerty}{${ex
tract{1}{:}{${lookup{shikut}lsearch{/usr/local/etc/exim/domains/virus22.com/
passwd}{$value}{fail}}}}}}}{yes}{no}}

    and there is Exim output:


Failed: failed to open /usr/local/etc/exim/domains/virus22.com/passwd for
linear search: No such file or directory

    I know that directory 'virus22.com' does not exists... But Exim doing
lookup for the second part of 'and', when the first is 'false'...


    If change 'virus22.com' to 'virus.com' (and I know that directory
exists) - there is no problem.


    Where I'm mistaken?


    P.S. Using Exim 3.20 on FreeBSD 4.2...


    Dmitry Shikut, shikut@???