Re: [Exim] bug in transport-filter parsing?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Jeremy Harris
CC: exim-users @ exim. org
Subject: Re: [Exim] bug in transport-filter parsing?
On Sun, 1 Aug 2004, Jeremy Harris wrote:

> That is,
>
>  transport_filter =    /some/path "${if = {${lookup pgsql{select blah}
> {$value}fail}} {1}\
> {/path/to/command arg1 arg2} {}}"

>
> does the lookup, but
>
>  transport_filter =    "${if = {${lookup pgsql{select blah} {$value}fail}}
> {1}\
> {/path/to/command arg1 arg2} {}}"

>
> does not.


That's because the quotes are taken as part of the setting of the string
value of the option. If you want quotes at the start and end of the
value of an option, you need

transport_filter = "\"....\""

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book