Spam Check rule file issues and checking order.

Julian Field MailScanner at
Fri Apr 1 17:31:14 IST 2005

    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

Bob Jones wrote:

> Now for an even weirder (in my mind at least) issue.  So, we move the
> SpamChecks line in to the [All,YesNo] section.  If we send
> a message originating from IP address (which is in the
> rules file to not be scanned) to ourdesk at (which is also in the
> rules file to not be scanned), the message is scanned.  If only one of
> those 2 criteria is used, the message is not scanned (correct result),
> but with both criteria the message *is* scanned.  Any idea what is going
> on with that?

That's a bug. I just fixed it.
In there is a chunk of code like this:

sub SpamChecks {
  my $this = shift;

  my($id, $message);
  my $counter = 0;

  #print STDERR "Starting spam checks\n";

  MailScanner::Log::InfoLog("Spam Checks: Starting")
    if MailScanner::Config::Value('logspam');

  while(($id, $message) = each %{$this->{messages}}) {
    next if $message->{deleted};
    next unless MailScanner::Config::Value('spamchecks', $message) =~ /1/;

Note the change to the last line.

Julian Field
Buy the MailScanner book at
Professional Support Services at
MailScanner thanks transtec Computers for their support

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ ( and
the archives (

Support MailScanner development - buy the book off the website!

More information about the MailScanner mailing list