Testing sieve filter
Hello,
I would like to make some test with the sieve filter.
The rule is stored in /tmp/filter :
require ["fileinto", "reject", "vacation", "relational", "comparator-i;ascii-numeric", "regex", "envelope", "notify", "subaddress", "copy"];
if header :contains "Subject" "{Spam?}"
{fileinto "SPAM"; stop;}
the command imsimta test -exp -mm -block -input=/tmp/filter gives :
Expression: require ["fileinto", "reject", "vacation", "relational", "comparator-i;ascii-numeric", "regex", "envelope", "notify", "subaddress", "copy"];
Expression: Expression: if header :contains "Subject" "{Spam?}"
Expression: Expression: {fileinto "SPAM"; stop;}
Expression: Dump: header:2000115;0 3 1 :contains 1 "Subject" 1 "{Spam?}"
Dump: if 8 ; fileinto:2000113;0 1 1 "SPAM" ; "" stop
Evaluation error: No message context for header test
But when I add -message=/tmp/17.msg where /tmp/17.msg is :
Received: from mmp-1-1.sipr-dc.ucl.ac.be ([127.0.0.1])
by mmp.sipr-dc.ucl.ac.be (Sun Java System Messaging Server 6.2-3.04 (built Jul
15 2005)) with SMTP id <0J6I00KHF3U54050@mmp.sipr-dc.ucl.ac.be> for
maes.pascal@uclouvain.be; Mon, 02 Oct 2006 11:04:43 +0200 (CEST)
Date: Mon, 02 Oct 2006 11:04:38 +0200 (CEST)
Date-warning: Date header was inserted by mmp.sipr-dc.ucl.ac.be
From: maes.pascal@uclouvain.be
Subject: {Spam?} test number 3
To: maes.pascal@uclouvain.be
Message-id: <0J6I00KHG3UP4050@mmp.sipr-dc.ucl.ac.be>
test number 3
the command imsimta test -exp -mm -block -input=/tmp/filter -message=/tmp/17.msg gives
15:49:33.27: Exit code = 13 (13) - IMTA__ERROPENINP, error opening file !AD for input: Permission denied
What's wrong ?
# imsimta version
Sun Java(tm) System Messaging Server 6.2-3.04 (built Jul 15 2005)
libimta.so 6.2-3.04 (built 01:32:55, Jul 15 2005)
SunOS mmp-1-1 5.10 Generic_118855-14 i86pc i386 i86pc

