Spamassassin, mailscanner 3, etc.
Julian Field
jkf at ecs.soton.ac.uk
Wed Jan 16 17:04:53 GMT 2002
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