Re: [Exim] custom-router

Página Inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Para: tsh
CC: exim-users
Assunto: Re: [Exim] custom-router
On Mon, 31 Mar 2003 tsh@??? wrote:

> =========
> lmb_router:
>   transport=${if and { \
>                        {exists{/usr/exim/userspamcontrol/${local_part}/spamdata.db}} \
>                        {eq {${run{/bin/csh /usr/exim/spam.csh $local_part ${spool_directory}/input/${message_id}}{}{}}$runrc}{2}} \
>                        {exists{/usr/exim/userspamcontrol/${local_part}/junkspam}} \
>                      } {spam_transport}{remote_smtp} \
>              }

>
> headers_add = ${if eq {$runrc} {2} {X-spam:}{}}
> =========
>
>
> This doesnt seem to be working as there is no evidence of headers being
> added in the debug output below.


The problem is that the headers_add option is processed before the
transport option.

The only think I can suggest is that you inspect $runrc in the transport
expansion, and select a different transport when the value is 2. Then
put the headers_add option on that transport.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.