On Tue, 20 Aug 2002, lk wrote:
Hello,
I'm trying to include ifile (for spam filtering) into procmail, but have no
success. When trying my setup from command line, it works. But when used in
.procmailrc, return code is always 1. Why?
Iin .procmailrc I have:
:0w
Does ifile runs on the body of the message? If yes, I think
that you must add the "B" flag:
:0 Bw
* ? dm
spam
Script dm:
#!/bin/sh
if [ `/usr/local/bin/ifile -q -v 0 | /usr/bin/head -1 | /usr/bin/awk '{print
$1}'` = "spam" ]; then
exit 0
else
exit 1
fi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail