junkfilter rules for MH

Bernard Schoenacker <[email protected]> Tue, 3 Jun 2014 18:31:13 +0200
Newsgroups gmane.mail.procmail
Message-ID <20140603183113.532ca10b@hamtaro>
hello,

I have installed junkfilter and it appears to be tagging the headers
in the emails correctly but the recipe in the procmailrc.sample file
doesn't appear to move the message to the corresponding junkmail box
any suggestions?

Below is the recipe...

# Call junkfilter
INCLUDERC=$JFDIR/junkfilter

# Take action if junkfilter caught a junkmail.
:0
* JFEXP ?? .
{
# This is for the whitelist. The message is tagged with an
# X-Spammer: header, but is not filtered away.
:0 f
* JFSTATUS ?? 1
| formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer: $JFEXP"

# Non-whitelist messages are tagged and sent to a junk
mailbox.
:0 E :
| formail -i "X-junkfilter: $JFVERSION" -i "X-Spammer:
$JFEXP" \

    >> junkmail

}
### who is the junkmail folder ?
# Catches everything else.
:0 :
|rcvstore +inbox

# EOF procmailrc.sample

OS: Linux debian


procmail -v
procmail v3.22 2001/09/10
    Copyright (c) 1990-2001, Stephen R. van den Berg
<[email protected]> Copyright (c) 1997-2001, Philip A.
Guenther		<[email protected]>

Submit questions/answers to the procmail-related mailinglist by sending
to: <[email protected]>

And of course, subscription and information requests for this list to:
	<[email protected]>

Locking strategies:	dotlocking, fcntl()
Default rcfile:		$HOME/.procmailrc
	It may be writable by your primary group
Your system mailbox:	/var/mail/bernard

best regard
bernard