I am running MIMEDefang and Spamassassin with Sendmail-8.12.10 and
Imap-2002e and Procmail-3.22 on my mailserver. I recently upgraded from
an earlier version of MD to ver 2.60. In the earlier version of MD I was
able to modify mimedefang-filter to allow messages with a spam score of
10 and under to be delivered normally, messages with a score of 11-20 to
be delivered to a SPAM folder and messages with a score of 21 or more
would be dumped (/dev/null). These same modifications break the new
mimedefang-filter, so I have decided to try to do a similar thing with
Procmail.
MIMEDefang/Spamassassin adds a new header, "X-Spam-Score: " that shows
the actual spam score and also a series of asterisks the represent the
score. Using that' I have added the following to my ~/.procmailrc.
:0
* ^X-Spam-Score:.*(\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
Trash
:0
* ^X-Spam-Score:.*(\*\*\*\*\*\*\*
Junk
This actually does work, but I get the following error in my log file
with every message that makes it to this stage of the filter.
procmail: Invalid regexp "^X-Spam-Score:.*(\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*"
procmail: Invalid regexp "^X-Spam-Score:.*(\*\*\*\*\*\*\*"
From 141707905(_dot_)WINHUNDREDC(_at_)bounce(_dot_)iexpect(_dot_)com Fri Oct
17 15:12:49 2003
Subject: : Cash Prize Information Inside - Please respond ASAP
Folder: Junk 4944
I am VERY new at Procmail, so I've probably done this the hard way. Can
anyone suggest a better way to do this? Or at least tell me why I get
the error message in my log even though the filter works?
Thanks,
Rick Knight
(rick_knight(_at_)rlknight(_dot_)com)
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail