Re: [exim] Do ACL's have any kind of jump to or goto command…

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: Marc Perkel
CC: exim-users
Subject: Re: [exim] Do ACL's have any kind of jump to or goto command?
On Sun, 8 Jan 2006, Marc Perkel wrote:

> I don't know if the ACLs have this but here's what I want to do. I want to
> test to see if a directory exists and if it doesn't I want to jump past a
> dozen other tests to some label. Is there any kind of goto label in ACLs?


One ACL can call another:

# ...
    deny
      condition = ${if exists{/path/to/directory} }
      acl = a_dozen_other_tests
# ...


a_dozen_other_tests:

accept
# ...

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}}