From 9e4a64fd7c67f4a838ca588ee62c81227bdee9f2 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 25 Jun 2023 10:56:57 +0100 Subject: [PATCH] Docs: duplicate description of lookup-style query syntax --- doc/doc-docbook/spec.xfpt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/doc-docbook/spec.xfpt b/doc/doc-docbook/spec.xfpt index 5122c97fb..4a044bb11 100644 --- a/doc/doc-docbook/spec.xfpt +++ b/doc/doc-docbook/spec.xfpt @@ -6724,6 +6724,12 @@ version of the lookup key. The &'query-style'& type accepts a generalized database query. No particular key value is assumed by Exim for query-style lookups. You can use whichever Exim variables you need to construct the database query. + +For the string-expansion kind of lookups, the query is given in the first +bracketed argument of the &${lookup ...}$& expansion. +For the list-argument kind of lookup the quury is given by the remainder of the +list item after the first semicolon. + .cindex "tainted data" "quoting for lookups" If tainted data is used in the query then it should be quuted by using the &*${quote_*&<&'lookup-type'&>&*:*&<&'string'&>&*}*& expansion operator -- 2.39.5