Re: [exim] Conditional transport_filter

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jeremy Harris
Datum:  
To: exim-users
Betreff: Re: [exim] Conditional transport_filter
On 07/20/2013 09:49 AM, Mike Cardwell wrote:
> 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}{}}"


This won't work because the split-by-whitespace is done before expansions...

> Is there a good solution for this?


Could you pass the condition to the filter and have it decide to do nothing?
--
Cheers,
    Jeremy