Fun with my own spamassassin filter: slow reacting?

Randal, Phil prandal at
Tue Sep 1 14:30:54 IST 2009

The old score was being cached in MailScanner's spamassassin results



Phil Randal | Networks Engineer
NHS Herefordshire & Herefordshire Council  | Deputy Chief Executive's
Office | I.C.T. Services Division
Thorn Office Centre, Rotherwas, Hereford, HR2 6JT
Tel: 01432 260160
email: prandal at

Any opinion expressed in this e-mail or any attached files are those of
the individual and not necessarily those of Herefordshire Council.

This e-mail and any attached files are confidential and intended solely
for the use of the addressee. This communication may contain material
protected by law from being passed on. If you are not the intended
recipient and have received this e-mail in error, you are advised that
any use, dissemination, forwarding, printing or copying of this e-mail
is strictly prohibited. If you have received this e-mail in error please
contact the sender immediately and destroy all copies of it.

-----Original Message-----
From: mailscanner-bounces at
[mailto:mailscanner-bounces at] On Behalf Of
Mauricio Tavares
Sent: 01 September 2009 14:18
To: MailScanner discussion
Subject: Fun with my own spamassassin filter: slow reacting?

	Trying to write a filter that would look for a header beginning
with a specific text and give me a score based on that. So, after
reading I edit
spam.assassin.prefs.conf and add the following:

header LOCAL_TEST Test-Header =~ /Strange Pork/ score LOCAL_TEST  -1.000

then reload MailScanner and send a test email with that header. I check
the header and it seems to have found the header and graded it as it

not spam, SpamAssassin (cached, score=1.694,	required 4.7,
BASE64_LENGTH_79_INF 1.50, BAYES_05 -1.11,	FH_HELO_ENDS_DOT 2.31,

So, just for the fun of it, I decrease the score to -3, reload
MailScanner, and send the test email. I am still getting -1 as the score
for LOCAL_TEST. I try restarting it and get the same results.

Today, I try it again, not having touched the mail server since that
last attempt. Now it properly reports the new score for LOCAL_TEST:

not spam, SpamAssassin (not cached, score=-0.306,	required 4.7,
BASE64_LENGTH_79_INF 1.50, BAYES_05 -1.11,	FH_HELO_ENDS_DOT 2.31,

Is it me who missed some step here or it is just slow to update itself?

MailScanner mailing list
mailscanner at

Before posting, read

Support MailScanner development - buy the book off the website! 

More information about the MailScanner mailing list