Re: [exim] protected addresses ACL

Góra strony
Delete this message
Reply to this message
Autor: Tony Finch
Data:  
Dla: Giles Constant
CC: exim-users
Temat: Re: [exim] protected addresses ACL
On Thu, 3 Feb 2005, Giles Constant wrote:

> > condition = ${stat:filename}
>
> I tried that - according to the manual, stat 'fails' if the file doesn't
> exist.


Why is this a problem? Expansion failure results in the condition being
false, which is what you want.

> I guessed you might have meant 'exists', but that also seems to fail
>
>    condition = exists{/path/$domain/protected-addresses}


exists is an expansion condition, so it must be used with ${if :

  condition = ${if exists{/path/$domain/protected-addresses} \
                   {yes} {no} }


Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}