Re: [exim] Available recipient variable in DATA ACL

Top Page
Delete this message
Reply to this message
Author: Jeremy Harris
Date:  
To: exim-users
Subject: Re: [exim] Available recipient variable in DATA ACL
On 02/26/2010 06:30 PM, Mike Cardwell wrote:
> During the data phase, $recipients contains a comma separated list of
> all the recipients. If you wanted to do an INSERT into an SQL database
> at that point for each individual recipient, you could use a stored
> function and loop over each address via the comma delimiter inside that
> function. Another alternative would be to copy $recipients into an acl
> variable and then use a recursive acl which pops off the top address,
> inserts, and then calls it's self. As long as you take into account
> recursion limits.


If you can write your SQL as a one-liner exim expansion, you can
walk a list with (e.g.) ${filter {}{}}

Recursion not needed.

Cheers,
    Jeremy