Irina wrote: > Hello at SA list. > > I am a new subscriber - don't get angry if I did something wrong :-) > > > 1. Is there any place and/or are there any tools that are available > for updating SA rules automatically (on FreeBSD)?
http://www.exit0.us/index.php?pagename=RulesDuJour Note: this is intended to update add-on rulesets. The only way to update the standard rules is to install the new version of SA. To understand why you can't upgrade the standard rules without upgrading SA read: http://wiki.apache.org/spamassassin/VirusScannerTypeUpdates Although SA 3.0 and higher use a perceptron instead of a genetic algorithm to tally scores, the overall process is much the same and still takes about the same amount of time because the mass-check runs take a long time to run. > > 2. What can I use to check on SA configuration from a Perl program > (spamassassin --lint)? Stolen straight from the spamassassin code: # create the tester factory my $spamtest = new Mail::SpamAssassin( { rules_filename => $opt{'configpath'}, site_rules_filename => $opt{'siteconfigpath'}, userprefs_filename => $opt{'prefspath'}, local_tests_only => $opt{'local'}, debug => defined( $opt{'debug-level'} ), dont_copy_prefs => ( $opt{'create-prefs'} ? 0 : 1 ), PREFIX => $PREFIX, DEF_RULES_DIR => $DEF_RULES_DIR, LOCAL_RULES_DIR => $LOCAL_RULES_DIR, } ); <snip, lots of code> if ( $opt{'lint'} ) { $spamtest->debug_diagnostics(); my $res = $spamtest->lint_rules(); warn "lint: $res issues detected. please rerun with debug enabled for more information.\n" if ($res); exit $res ? 1: 0; }