procmail help

"Rod Smart" <[email protected]> Thu, 20 Jul 2006 12:39:49 +1000
Newsgroups gmane.org.user-groups.mlug.main
Message-ID <[email protected]>
Hi.

I have been trying to figure out procmailrc file, and after reading the
Man page and other places, I still cannot work it out properly..

I have Dspam running which is sucking the spam out of my e-mail's at
home, but using dspam-web the procmail is still grabbing the E-mail from
the web application and dropping it to the spam folder.

I'm using maildir's

This is my ~/.procmailrc file

MAILDIR=$HOME/Maildir
PMDIR=$HOME/.procmail
LOGFILE=$HOME/.dspam/procmail.log
SHELL=/bin/sh

# Begin spam treatment.
:0fw
| /usr/bin/dspam  --stdout --deliver=innocent,spam --mode=teft \
--feature=chained,noise,whitelist --user $USER

:0
*^X-DSPAM-Result: Innocent
$HOME/Maildir/

:0
*^X-DSPAM-Result: Spam
/var/spool/dspam/local/yendor/yendor.mbox
# End spam treatment.

# inbox catch-all
:0
$HOME/Maildir/


and here is a sample header that I'm having a problem with, Dspam is
attaching the "Innocent" tag after the first tag that defined it as spam
in the first place.

<clip the top section>
 Mime-Version: 1.0
 Content-Type: multipart/mixed; 
 X-Mailer: IDMail
 X-OriginalArrivalTime: 29 Jun 2006 21:09:05.0369 (UTC)
FILETIME=[4107BC90:01C69BC0]
 Date: 30 Jun 2006 07:09:05 +1000
 X-DSPAM-Result: Spam
 X-DSPAM-Processed: Fri Jun 30 07:10:22 2006
 X-DSPAM-Confidence: 0.5546
 X-DSPAM-Probability: 1.0000
 X-DSPAM-Signature: 1000,44a441be312379100416908
 X-DSPAM-Factors: 15,
 Status: O
 From: [email protected] (apache)
 X-DSPAM-Result: Innocent
 X-DSPAM-Processed: Thu Jul 20 11:16:39 2006
 X-DSPAM-Confidence: 0.5674
 X-DSPAM-Probability: 0.0000
 X-DSPAM-Signature: 1000,44bed97724301804284693
 X-DSPAM-Factors: 27,
	*jumpgate.rods.id.au+Thu, 0.00122,
	To*jumpgate.rods.id.au, 0.00448,
<clip the rest>

I guess I have assumed wrong that using a ":0" for the Innocent, then
again for the Spam (following) is incorrect syntax?  as All spam E-mails
that are as above get sent back to the spam folder :(