Suggestion box re spam scores
Chris W. Parker
cparker at SWATGEAR.COM
Wed Jul 21 19:00:45 IST 2004
Denis Beauchemin <mailto:Denis.Beauchemin at USHERBROOKE.CA>
on Wednesday, July 21, 2004 10:47 AM said:
> Try this patch to Message.pm:
> --- Message.pm 2004-07-21 13:41:49.000000000 -0400
> +++ Message.pm.test 2004-07-21 13:42:06.000000000 -0400
[snip]
> Beware! I did not test this... but it should work 8-)
honestly i've never used the 'patch' command so here's what i did.
1. i made a back up of my original Message.pm file.
2. then i made a file called Message.patch that contained the following:
--- Message.pm 2004-07-21 13:41:49.000000000 -0400
+++ Message.pm.test 2004-07-21 13:42:06.000000000 -0400
@@ -907,7 +907,8 @@
# if it's spam AND they want to modify the subject line AND it's not
# already been modified by another of your MailScanners.
my $spamtag = MailScanner::Config::Value('spamsubjecttext', $this);
- $spamtag =~ s/_SCORE_/$scoretext/;
+ my $scoretextfmt = sprintf "%06.2f", $this->{sascore};
+ $spamtag =~ s/_SCORE_/$scoretextfmt/;
if ($this->{isspam} && !$this->{ishigh} &&
MailScanner::Config::Value('spamprependsubject',$this) &&
!$global::MS->{mta}->TextStartsHeader($this, 'Subject:',
$spamtag)) {
3. then i ran 'patch Message.pm Message.patch' and all it said was
'patching Message.pm'.
4. then i ran 'service MailScanner restart'
at this point i've received two emails with high enough spam scores that
the subject gets modified but they still look like "{Spam?}(n)" instead
of "{Spam?}(n.nn)" or however you setup the formatting.
where did i go wrong?
thanks,
chris.
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list