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

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Malcolm Harper
日付:  
To: exim-users
題目: Re: [Exim] Variables set in system filter not copied to user's filter
On Thu, Mar 18, 2004 at 04:49:21PM +0000, Philip Hazel wrote:
> 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.


But it isn't an error message (it's just a "normal" mail message created
with mailx), and the system filter _is_ adding 7 to n0 (as shown by the
/tmp/system_filter.log entry I quoted).

> 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.


Hmm -- not for me. Any suggestions how I can track down what I'm doing
wrong?

Thanks -- Malcolm