Re: [exim] domainlist & mysql

Top Pagina
Delete this message
Reply to this message
Auteur: Peter Bowyer
Datum:  
Aan: Wakko Warner, Stephen Gran
CC: exim-users
Onderwerp: 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