Re: [Exim] lookup question

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Phil Pennock
Datum:  
To: Kelley Reynolds
CC: exim-users
Betreff: Re: [Exim] lookup question
On 2003-10-27 at 15:42 -0500, Kelley Reynolds wrote:
> My fault, let me be more explicit.


I know that feeling too well. :^)

> command = "${lookup pgsql{select homedir from domains where domain='$domain' limit 1} {$value} mail}/mailman/mail/mailman"
>
> According to 28.2, things inside double-quotes are escaped, but just to check I escaped the single quotes and still it gave the error of "missing lookup type"
>
> Is there something eluding me, or are the double-quotes not being used properly for the 'command' portion of pipe as opposed to the 'argument' portion?


Any luck with the per-lookup-type quote operators? Do they force
correct context for you?

Something like (untested):
command = "${lookup pgsql{select homedir from domains where domain=${quote_pgsql:$domain} limit 1} {$value} {mail}}/mailman/mail/mailman"

nb: this is with a default location for mailman of the "mail" directory;
should that be some path, or (being unquoted) should that have been
"fail" instead of "mail"?
--
2001: Blogging invented. Promises to change the way people bore strangers with
banal anecdotes about their pets. <http://www.thelemon.net/issues/timeline.php>