On 2016-05-06, Jeremy Harris <[email protected]> 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.
--
\_(ツ)_
--
## 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/