From 042eb971b8c1af6d257f207d453b30afeed529b8 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 10 Jun 2012 17:53:01 +0100 Subject: Add ${list:name} and ${nlist:string} expansion operators. --- doc/doc-docbook/spec.xfpt | 19 +++++++++++++++++++ doc/doc-txt/ChangeLog | 2 ++ doc/doc-txt/NewStuff | 4 +++- 3 files changed, 24 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index ece47a084..7c0a400d2 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -9734,6 +9734,25 @@ extracted from it. If the string does not parse successfully, the result is empty. +.vitem &*${list:*&<&'name'&>&*}*&&~and&~&*${list_*&<&'type'&>&*name'&>&*}*& +.cindex "expansion" "named list" +.cindex "&%list%& expansion item" +The name is interpreted as a named list and the content of the list is returned, +expanding any referenced lists, re-quoting as needed for colon-separation. +If the optional type if given it must be one of "a", "d", "h" or "l" +and selects address-, domain-, host- or localpart- lists to search among respectively. +Otherwise all types are searched in an undefined order and the first +matching list is returned. + + +.vitem &*${nlist:*&<&'string'&>&*}*& +.cindex "expansion" "list item count" +.cindex "list" "item count" +.cindex "list" "count of items" +.cindex "&%nlist%& expansion item" +The string is interpreted as a list and the number of items is returned. + + .vitem &*${mask:*&<&'IP&~address'&>&*/*&<&'bit&~count'&>&*}*& .cindex "masked IP address" .cindex "IP address" "masking" diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index 66fb1ca32..af6080985 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -39,6 +39,8 @@ JH/02 Support "G" suffix to numbers in ${if comparisons. PP/08 Handle smtp transport tls_sni option forced-fail for OpenSSL. +JH/03 Add expansion operators ${list:name} and ${nlist:string} + Exim version 4.80 ----------------- diff --git a/doc/doc-txt/NewStuff b/doc/doc-txt/NewStuff index aae58c631..64c1c14b7 100644 --- a/doc/doc-txt/NewStuff +++ b/doc/doc-txt/NewStuff @@ -70,7 +70,7 @@ Version 4.81 system not your own. The Recieved-by: header on items delivered by cutthrough is generated - early in of reception rather than at the end; this will affect any timestamp + early in reception rather than at the end; this will affect any timestamp included. The log line showing delivery is recorded before that showing reception; it uses a new ">>" tag instead of "=>". @@ -84,6 +84,8 @@ Version 4.81 Not yet supported: IGNOREQUOTA, SIZE, PIPELINING, AUTH. + 8. New expansion operators ${list:name} to get the content of a named list + and ${nlist:string} to count the items in a list. Version 4.80 ------------ -- cgit v1.2.3