[exim] and/or

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Tom Bombadil
日付:  
To: 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