Re: [exim] check for defer in acl

Top Page
Delete this message
Reply to this message
Author: Giuliano Gavazzi
Date:  
To: Andrew - Supernews, exim-users
CC: 
Subject: Re: [exim] check for defer in acl
At 10:53 pm +0100 2004/09/17, Andrew - Supernews wrote:
>Not tested explicitly, though I use some similar but more complex
>constructs:
>
>acl_callout_test:
>     warn   set acl_c0 = defer
>     accept verify = sender/callout
>            set acl_c0 = accept
>     warn   set acl_c0 = deny
>     deny

>
>Then in your real ACL (acl_check_mail, say):
>
>acl_check_mail:
>     ...other stuff...
>     warn   acl = acl_callout_test
>     # at this point acl_c0 is set to "defer" "deny" or "accept"

>
>This should be a useful general method of wrapping any ACL condition
>test in order to handle deferrals without having to use the condition
>more than once.


ooh! you mean that the whole acl_callout_test will return as soon as
the sender callout defers? Marvelous, very elegant indeed and not
complex at all!
I guess that the final verb in acl_callout_test could be an accept,
after all the returned value seems irrelevant.

Giuliano