Re: [exim] domainlist & mysql

Pàgina inicial
Delete this message
Reply to this message
Autor: Peter Bowyer
Data:  
A: Wakko Warner, Stephen Gran
CC: exim-users
Assumpte: Re: [exim] domainlist & mysql
Wakko Warner <wakko@???> wrote:
>
> No problem. I had asked about it before. Still wish I could do the
> entire query in SQL instead of doing the $sg trick.


The $sg trick is only necessary if you need to construct a colon-separated
list from an arbitrary set of string arguments. If you just need a simple
MySQL (or other) lookup, you should use the in-built facility:

domainlist name = mysql;select 1 from domaintable where
domaincolumn='${quote_mysql:$domain}'


Peter