Re: [exim] Conditional transport_filter

トップ ページ
このメッセージを削除
このメッセージに返信
著者: John Horne
日付:  
To: exim-users
題目: Re: [exim] Conditional transport_filter
On Sat, 2013-07-20 at 15:59 +0100, Jeremy Harris wrote:
> 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?
>

Since the transport_filter expects output, the 'do nothing' could be the
'cat' command to just echo the incoming message. In that case though,
perhaps changing the '{}' in the above condition to '{cat}' would work?




John.

-- 
John Horne, Plymouth University, UK
Tel: +44 (0)1752 587287    Fax: +44 (0)1752 587001