[exim] and/or

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tom Bombadil
Ημερομηνία:  
Προς: exim users
Αντικείμενο: [exim] and/or
Hi all...

I'm trying to check for the existence of a file before trying a lookup,
so I don't get a "No such file or directory" error.


condition = ${if and {                                \
    {exists {domains.cdb} }                           \
    {eq ${lookup{$domain}cdb{domains.cdb}}{black} }   \
{yes}{no} }



Does exim short circuits the AND?
Or better asking... in the condition above, if the file doesn't exist,
will exim try to look the file up and return a temporary failure?

Or will it not even try the lookup is the "exists {domains.cdb}"
sub-condition is false?

Thanks