Re: [Exim] Variables set in system filter not copied to user…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Philip Hazel
Date:  
À: Malcolm.Harper
CC: exim-users
Sujet: Re: [Exim] Variables set in system filter not copied to user's filter
On Thu, 11 Mar 2004 Malcolm.Harper@??? wrote:

> The system filter is:
> # Exim filter
> logfile /tmp/system_filter.log
> if error_message then finish endif
> add 7 to n0
> logwrite "$tod_log $message_id n0=$n0"
>
> The user's .forward file is:
> # Exim filter
> logfile /tmp/user_filter.log
> if error_message then finish endif
> logwrite "$tod_log $message_id sn0=$sn0 n0=$n0"
>
> A typical log entry in /tmp/system_filter.log is
> 2004-03-11 11:40:20 1B1OY0-0000t9-6z n0=7
> and the corresponding entry in /tmp/user_filter.log is
> 2004-03-11 11:40:20 1B1OY0-0000t9-6z sn0=0 n0=0
>
> Why is $sn0 not being set?


Because the incoming message is an error message. The system filter is
therefore exiting before it adds 7 to n0.

Sorry I didn't spot this before! I have just created some standard tests
for this $n->$sn stuff (for some reason there weren't any before), and
they all seem to work as expected.

Philip

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book