Re: [exim] conditional transport filters?

Pàgina inicial
Delete this message
Reply to this message
Autor: Jasen Betts
Data:  
A: exim-users
Assumpte: Re: [exim] conditional transport filters?
On 2016-05-06, Jeremy Harris <jgh@???> wrote:
> On 06/05/16 15:47, Felix Schwarz wrote:
>> transport_filter = '${if !def:authenticated_id {}{/usr/bin/rspamc
>> $authenticated_id}}'
>>
>> 16:42:23 5138 direct command after expansion:
>> 16:42:23 5138 argv[0] = /usr/bin/rspamc root
>
> I think you'd need either a ${if } for each portion of the
> commandline, or do the split in routing to two transports.


you should only need if on the first part.

 transport_filter = '${if !def:authenticated_id {}{/usr/bin/rspamc}' \
      $authenticated_id


There's an explicit check that argv[0] contains at-least one character.

--
\_(ツ)_