[Exim] quoting in local_domains and spec.txt

Página Inicial
Delete this message
Reply to this message
Autor: Chris Lightfoot
Data:  
Para: exim-users
Assunto: [Exim] quoting in local_domains and spec.txt
In

http://www.exim.org/pipermail/exim-users/Week-of-Mon-20000515/018154.html

it is suggested that a double-colon be used to escape
'${quote_mysql:$key}' in a MySQL query which is part of a
domain list. As far as I can see, this does not work,
because string_nextinlist doesn't actually treat a
double-colon specially.

The correct syntax to use is something like

    local_domains = <#something#something.else#\
            mysql;select foo from bar where baz = '${quote_mysql:$key}'


The <. syntax is described in section 7.11 of the spec,
but it might be worth remarking on it in the example given
for a MySQL lookup in 7.12. (It would have saved me some
confusion, certainly.)

--
The Boss: If the cops find out, we can frame my clone for the crime.
 Dilbert: That is so wrong.
The Boss: Why? He'd do the same thing to me.        (Scott Adams)