Hi Marius

You may want to read up on this thread: https://lists.exim.org/lurker/message/20130611.163947.b7ff02f8.en.html Using a no-op router first which fills address_data is the best I could come up with and it works reasonably well for me.

As Graeme noted there, if the sql queries are exactly the same exim would cache them (per process) so it may not be needed for better performance but I still like my approach for better readability, ymmv.

David

Am 11.07.2013 17:12, schrieb Cyborg:
Hi,

is it possible to have an sql select inside a transport who queries
informations and stores them in reusabel variables ..

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

?

Marius

--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to