Re: [Exim] Wishlist: $acl_a0 - $acl_a9

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Kjetil Torgrim Homme
Date:  
À: exim-users
Sujet: Re: [Exim] Wishlist: $acl_a0 - $acl_a9
On søn, 2004-07-18 at 19:25 +0100, Philip Hazel wrote:
> On Fri, 16 Jul 2004, Tor Slettnes wrote:
>
> > ACL-local variables, for scratch & the like...
>
> The variables are already somewhat of a hack. I wouldn't want to hack
> more without re-thinking about the whole area a lot.


yes, understandable. I really want named variables, I think we don't
need local variables if we can give the variable better names.
something like

set myvar = whatever

to set it and

${var:myvar}

to expand it. (I don't think we need to set variables in routers.)

but we still need to be able to specify the lifetime of the variable.
coding an explicit clear of the variable's contents when Exim starts
processing the next delivery is awkward and error prone. one solution
is to make "message local" the default and add an extra command and
expansion operator for the "connection local". another solution is to
require variables to be declared before use, with the declaration
specifying the variable's scope.

--
Kjetil T.