[exim-dev] [Bug 472] "require" ACL verb is order-sensitive, …

Pàgina inicial
Delete this message
Reply to this message
Autor: bug472
Data:  
A: exim-dev
Assumpte: [exim-dev] [Bug 472] "require" ACL verb is order-sensitive, while it shouldn't
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

http://www.exim.org/bugzilla/show_bug.cgi?id=472





------- Comment #3 from anomie@??? 2007-02-15 15:08 -------
On Wed, Feb 14, 2007 at 05:47:39PM +0000, w@??? wrote:
>
> Well, yeah, it starts making sense. But, could you then add a notion in the
> "ACL verbs" section that "require" behaves in this way (or just a link to
> 40.17)? It may be slightly confusing to someone, as it was to me.


It's not so much that "'require' behaves in this way" as it is that
require exposes the common behavior more readily. You can see it with
any verb using something with side effects, e.g. set or logwrite. For
example, to look up the country of the client by their IP address and
default to '??' if the country is not known:

  warn set acl_c0 = ??
       dnslists = zz.countries.nerd.dk
       set acl_c0 = ${uc:$dnslist_text}


The seconds 'set' will only be executed if the dnslists condition
passes.

--
Configure bugmail: http://www.exim.org/bugzilla/userprefs.cgi?tab=email