[exim] and/or

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tom Bombadil
Fecha:  
A: exim users
Asunto: [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