On 2016-05-04, Felix Schwarz <[email protected]> wrote:
>
> I'm using a transport filter before passing the message to dovecot (LDA). This
> transport filter adds a few headers (spam checking).

do what Jeremy says:

put single quotes around the ${if...}

> So I tried:
> transport_filter = ${if def:authenticated_id {}{ \
>       /usr/bin/rspamc ... \
> }}
>

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


If the first word comes out as ''  the filter will be bypassed else
the word will be used. In your case '/usr/bin/rspamc' 

else if you want to confuse people who come to edit it later rewrite it with no 
spaces:

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


 :)

-- 
  \_(ツ)_


-- 
## 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/

Reply via email to