[exim-dev] [Bug 458] Various expansion items and conditions …

Top Page
Delete this message
Reply to this message
Author: bug458
Date:  
To: exim-dev
Old-Topics: [exim-dev] [Bug 458] New: Expansion condition: forall and/or forany
Subject: [exim-dev] [Bug 458] Various expansion items and conditions iterating over lists
------- 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=458





------- Comment #17 from holmgren@??? 2007-02-10 19:55 -------
Created an attachment (id=68)
--> (http://www.exim.org/bugzilla/attachment.cgi?id=68&action=view)
An attempt at map and filter (should perhaps be called map_list and
filter_list)

${map {<list>}{<expression>}} iterates over <list>, setting $item to each list
element, and returns a list consisting of the results of the expansions of
<expression>. Forced expansion failure causes the element to be simply deleted.

${filter {<list>}{<condition>}} similarly iterates over <list>, keeping those
elements for which <condition> evaluates true.

The new list uses the same separator as the original one (but with no "<;" at
the beginning).

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