procmail
[Top] [All Lists]

Need help debugging .procmailrc script

2004-12-15 11:52:24
I'm trying to have my procmail script automatically handle messages 
which SpamAssassin detects as spam.  Specifically, if the score is 8 or 
higher (indicated by a header of "X-Spam-Level: ********" (with each "*" 
being 1 point), I want the message put into a folder called 
"Spam/Filtered"

Here is my .procmailrc script:
= = =
# If SA was able to autolearn the message, just nuke it now
:0
* ^X-Spam-Status:.*autolearn=spam
/dev/null

# If the rating is 8 or higher, dump it   ***Here is the error***
:0:
* ^Spam-Level:.\*\*\*\*\*\*\*\*
Spam/Filtered

# SA on cornerstone has it marked
:0:
* ^Subject:.\[Spam]
Spam/Probable
= = =



Here is a portion of the logfile (with line marked indicating the 
error):
= = =
From Robles(_at_)fox(_dot_)tds(_dot_)net  Wed Dec 15 02:17:18 2004
 Subject: [SPAM] 15 minutes is enough to make your night amazing! 
battleground
  Folder: Spam/Probable 
6592
procmail: [15587] Wed Dec 15 02:47:28 2004
procmail: No match on "^X-Spam-Status:.*autolearn=spam"
--> procmail: No match on "^Spam-Level:.\*\*\*\*\*\*\*\*"
procmail: Match on "^Subject:.\[Spam]"
procmail: Locking "Spam/Probable.lock"
procmail: Assigning "LASTFOLDER=Spam/Probable"
procmail: Opening "Spam/Probable"
procmail: Acquiring kernel-lock
procmail: Unlocking "Spam/Probable.lock"
procmail: Notified comsat: 
"cbarnes(_at_)283183:/home/cbarnes/mail/Spam/Probable"
= = =




Here is the portion of the message header itself:
= = =
X-Spam-Level: ********
= = =

--

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Chris Barnes                           AOL IM: CNBarnes
chris-barnes(_at_)tamu(_dot_)edu                Yahoo IM: chrisnbarnes 




____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>