X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/0c7e18012fbe839480d6c657e1e39a2f4d41f6fe..b5fd6a2b95ee5fb8106409eeada846b638bd083b:/doc/doc-docbook/spec.xfpt
diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt
index 530d9e3c4..f8e73839a 100644
--- a/doc/doc-docbook/spec.xfpt
+++ b/doc/doc-docbook/spec.xfpt
@@ -175,7 +175,7 @@
EM
4.77
- 03 Oct 2011
+ 10 Oct 2011
EM
2011University of Cambridge
@@ -7779,7 +7779,7 @@ pattern must be an appropriate query for the lookup type, as described in
chapter &<>&. For example:
.code
hold_domains = mysql;select domain from holdlist \
- where domain = '$domain';
+ where domain = '${quote_mysql:$domain}';
.endd
In most cases, the data that is looked up is not used (so for an SQL query, for
example, it doesn't matter what field you select). Exim is interested only in
@@ -10208,10 +10208,12 @@ See &*match_local_part*&.
.vitem &*match_ip&~{*&<&'string1'&>&*}{*&<&'string2'&>&*}*&
.cindex "&%match_ip%& expansion condition"
+.new
This condition matches an IP address to a list of IP address patterns. It must
be followed by two argument strings. The first (after expansion) must be an IP
-address or an empty string. The second (after expansion) is a restricted host
+address or an empty string. The second (not expanded) is a restricted host
list that can match only an IP address, not a host name. For example:
+.wen
.code
${if match_ip{$sender_host_address}{1.2.3.4:5.6.7.8}{...}{...}}
.endd
@@ -10257,6 +10259,11 @@ just as easy to use the fact that a lookup is itself a condition, and write:
.endd
.endlist ilist
+.new
+Note that <&'string2'&> is not itself subject to string expansion, unless
+Exim was built with the EXPAND_LISTMATCH_RHS option.
+.wen
+
Consult section &<>& for further details of these patterns.
.vitem &*match_local_part&~{*&<&'string1'&>&*}{*&<&'string2'&>&*}*&