Spamassassin, mailscanner 3, etc.
Rose, Bobby
brose at MED.WAYNE.EDU
Wed Jan 16 17:30:53 GMT 2002
Since I've already hacked mine, I couldn't diff it but I've got it in
there now. Works great.
Now to figure out the reason why I still see intermittent spam messages
that score less when they go thru the api than what is scored when
passed the commandline. I still see a difference which doesn't make
sense. The @wholemessage array is the same as the file I dump out. One
message that I have scores 4.66 thru mailscanner but a 6.76 thru the
spammassassin -t.
A message that was tagged scored 9.16 thru spamassassin -t but 7 (int)
when mailscannner passes it off.
-----Original Message-----
From: Julian Field [mailto:jkf at ECS.SOTON.AC.UK]
Sent: Wednesday, January 16, 2002 12:05 PM
To: MAILSCANNER at JISCMAIL.AC.UK
Subject: Re: Spamassassin, mailscanner 3, etc.
At 16:52 16/01/2002, you wrote:
>Sorry I am not following you... =) what exactly did you modify in
>sendmail.pl to get the "hits" to appear in the header?
Here's the diff from the previous version:
202c202,204
< if (SpamAssassinChecks($Headers, $mID)) {
---
> my($spammy);
> $spammy = SpamAssassinChecks($Headers, $mID);
> if ($spammy) {
204c206
< $SpamText->{$mID} .= "SpamAssassin";
---
> $SpamText->{$mID} .= "SpamAssassin ($spammy hits)";
279a282
> $SAResult = int($spamness->get_hits()) if $SAResult;
321c324
< # Don't care about return code in this case, we ignore it anyway
---
> # The return from the pipe is a measure of how spammy it was
>-----Original Message-----
>From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
>Behalf Of Julian Field
>Sent: Wednesday, January 16, 2002 4:07 AM
>To: MAILSCANNER at JISCMAIL.AC.UK
>Subject: Re: Spamassassin, mailscanner 3, etc.
>
>At 02:22 16/01/2002, you wrote:
> >I added get_hits () to the sendmail.pl and also uncommented the line
> >to save to a queue for analysis (had to move it into the routine
> >where $dfilename was getting set though).
>
>Ah! I had never seen any mention of get_hits() before. I have just
>tweaked the code so that instead of saying
> X-MailScanner-SpamCheck: SpamAssassin
>it will now say
> X-MailScanner-SpamCheck: SpamAssassin (10 hits)
>or whatever.
>
>I know some people had been asking for this, I didn't realise there was
>a way of doing it :-)
--
Julian Field Teaching Systems Manager
jkf at ecs.soton.ac.uk Dept. of Electronics & Computer Science
Tel. 023 8059 2817 University of Southampton
Southampton SO17 1BJ
More information about the MailScanner
mailing list