diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2022-09-22 15:09:07 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2022-09-22 15:42:58 +0100 |
commit | a3d3e7ef81a649d2bbd6599fc561cf22c6875e70 (patch) | |
tree | b6f111884c55693b815a2aca2abbfeba7c778e17 /doc | |
parent | de768ba0626a60f094593c6e43fc808fe0e898b7 (diff) | |
download | exim4-a3d3e7ef81a649d2bbd6599fc561cf22c6875e70.tar.gz |
Fix ${filter } for conditions modifying $value
Diffstat (limited to 'doc')
-rw-r--r-- | doc/doc-docbook/spec.xfpt | 9 | ||||
-rw-r--r-- | doc/doc-txt/ChangeLog | 8 |
2 files changed, 13 insertions, 4 deletions
diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index 4e41acf42..8c54931fe 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -9907,7 +9907,11 @@ After expansion, <&'string'&> is interpreted as a list, colon-separated by default, but the separator can be changed in the usual way (&<<SECTlistsepchange>>&). For each item in this list, its value is place in &$item$&, and then the condition is -evaluated. If the condition is true, &$item$& is added to the output as an +evaluated. +.new +Any modification of &$value$& by this evaluation is discarded. +.wen +If the condition is true, &$item$& is added to the output as an item in a new list; if the condition is false, the item is discarded. The separator used for the output list is the same as the one used for the input, but a separator setting is not included in the output. For example: @@ -9915,7 +9919,8 @@ input, but a separator setting is not included in the output. For example: ${filter{a:b:c}{!eq{$item}{b}}} .endd yields &`a:c`&. At the end of the expansion, the value of &$item$& is restored -to what it was before. See also the &%map%& and &%reduce%& expansion items. +to what it was before. +See also the &%map%& and &%reduce%& expansion items. .vitem &*${hash{*&<&'string1'&>&*}{*&<&'string2'&>&*}{*&<&'string3'&>&*}}*& diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog index ba5bd23d9..2720fb819 100644 --- a/doc/doc-txt/ChangeLog +++ b/doc/doc-txt/ChangeLog @@ -23,10 +23,10 @@ JH/05 Follow symlinks for placing a watch on TLS creds files. This means it would be the dir with the first symlink. We still do not monitor the entire path. -JH/06 Check for bad chars in rDNS for sender_host_name. The OpenBSD (at least) +JH/06 Check for bad chars in rDNS for sender_host_name. The OpenBSD (at least) dn_expand() is happy to pass them through. -JH/07 OpenSSL Fix auto-reload of changed server OCSP proof. Previously, if +JH/07 OpenSSL Fix auto-reload of changed server OCSP proof. Previously, if the file with the proof had an unchanged name, the new proof(s) were loaded on top of the old ones (and nover used; the old ones were stapled). @@ -36,6 +36,10 @@ JH/08 Bug 2915: Fix use-after-free for $regex<n> variables. Previously when These variables were introduced in Exim 4.87. Debug help from Graeme Fowler. +JH/09 Fix ${filter } for conditions that modify $value. Previously the + modified version would be used in construction the result, and a memory + error would occur. + Exim version 4.96 ----------------- |