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

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to