Deleting high score messages

Tony Finch dot at DOTAT.AT
Tue Apr 15 21:53:45 IST 2003


Tony Finch <dot at DOTAT.AT> wrote:
>Denis Beauchemin <Denis.Beauchemin at USHERBROOKE.CA> wrote:
>>
>>I have many such lines in my spam.assassin.prefs.conf file and they work
>>just fine.  I use them to assign high scores to hoaxes and I see many
>>every day.
>
>You probably have allow_user_rules turned on somewhere.

Actually that's wrong -- I had too much faith in the error messages.
If you have some local rules in your spam.assassin.prefs.conf and you
run MailScanner with debugging on you will see near the end of the
startup messages:

debug: Failed to parse line in SpamAssassin configuration, skipping: header   FROM_CRSID  From =~ /\d\d\@([a-z0-9-+]\.)?cam\.ac\.uk/

However if you put an actual error in the file, you will see the
following line *twice*, once near the start and once near the end:

debug: Failed to parse line in SpamAssassin configuration, skipping: this_line_will_cause_an_error

Which indicates that this patch would be appropriate:

--- lib/MailScanner/SA.pm 4 Apr 2003 19:19:48 -0000       1.10
+++ lib/MailScanner/SA.pm 15 Apr 2003 20:38:20 -0000
@@ -129,7 +129,6 @@
     # Need to delete lock file now or compile_now may never return
     unlink $MailScanner::SA::SABayesLock;
     $MailScanner::SA::SAspamtest->compile_now();
-    $MailScanner::SA::SAspamtest->read_scoreonly_config($prefs);
   }
 }

Tony.
--
f.a.n.finch  <dot at dotat.at>  http://dotat.at/
ARDNAMURCHAN POINT TO CAPE WRATH INCLUDING THE OUTER HEBRIDES: SOUTHEAST 5,
OCCASIONALLY 3 OR 4. FAIR, PERHAPS A SHOWER LATER ON WEDNESDAY VISIBILITY:
GOOD. SLIGHT OR MODERATE.



More information about the MailScanner mailing list