Re: [exim] Transport storing informations

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Jasen Betts
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] Transport storing informations
On 2013-07-11, Cyborg <cyborg2@???> wrote:
>
> Hi,
>
> is it possible to have an sql select inside a transport who queries
> informations and stores them in reusabel variables ..


AFAIK no, but queries will be cached or you can use macros

>      var_x = $lockup{select id from mailboxes where localpart='$localpart'}
>      transport_filter = 'filterfile' '$localpart@$domain' '$var_x'



main section:
MACRO_X = '$lockup{select id from mailboxes where localpart='$localpart'}'



transport_foo:
transport_filter = 'filterfile' '$localpart@$domain' MACRO_X




--
⚂⚃ 100% natural