Re: [Exim] Access to the "yield" of lookup

Top Pagina
Delete this message
Reply to this message
Auteur: Anand Buddhdev
Datum:  
Aan: steven
CC: exim-users
Onderwerp: Re: [Exim] Access to the "yield" of lookup
On Thu, May 20, 2004 at 02:03:02PM -0700, steven@??? wrote:

> In a router I wish to access the results of a lookup by using a sequence like
>
>    condition = ${lookup pgsql{select ...
>    header_add = X-Aheader : $value


If your pgsql lookup returns only one field, then:

header_add = X-Aheader: $address_data

If the pgsql lookup returns multiple fields:

header_add = X-Aheader: ${extract {fieldname} {$address_data} }

--
Anand Buddhdev
Celtel International