[exim] Conditional transport_filter

Etusivu
Poista viesti
Vastaa
Lähettäjä: Mike Cardwell
Päiväys:  
Vastaanottaja: Exim
Aihe: [exim] Conditional transport_filter
I want a transport_filter to execute under certain conditions only. I
attempted making it so that if the condition didn't succeed then it
expanded to an empty string, but that didn't work. E.g:

transport_filter = "${if CONDITION{command to filter though}{}}"

One solution would be to just set up two separate transports that are
identical apart from one having the transport_filter, and then
reconfigure my routers to do the conditional check and choose the
appropriate transport accordingly. That way seems fairly messy though
as the transport in question is quite large.

Is there a good solution for this?

- -- 
Mike Cardwell  https://grepular.com/     http://cardwellit.com/
OpenPGP Key    35BC AF1D 3AA2 1F84 3DC3  B0CF 70A5 F512 0018 461F
XMPP OTR Key   8924 B06A 7917 AAF3 DBB1  BF1B 295C 3C78 3EF1 46B4