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

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Anand Buddhdev
Dátum:  
Címzett: steven
CC: exim-users
Tárgy: 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