You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2004/03/07 09:51:34 UTC
svn commit: rev 7042 - incubator/spamassassin/trunk
Author: felicity
Date: Sun Mar 7 00:51:33 2004
New Revision: 7042
Modified:
incubator/spamassassin/trunk/spamassassin.raw
Log:
bug 2632: if running spamassassin in test mode, force disable things like autowhitelist and bayes autolearn (things that have a memory...)
Modified: incubator/spamassassin/trunk/spamassassin.raw
==============================================================================
--- incubator/spamassassin/trunk/spamassassin.raw (original)
+++ incubator/spamassassin/trunk/spamassassin.raw Sun Mar 7 00:51:33 2004
@@ -199,6 +199,13 @@
$spamtest->init(1);
}
+# if we're doing things in test mode, force disable long-term memory
+# functions like autowhitelist and bayes autolearn.
+if ($opt{'test-mode'}) {
+ $spamtest->{'conf'}->{'use_auto_whitelist'} = 0;
+ $spamtest->{'conf'}->{'bayes_auto_learn'} = 0;
+}
+
###########################################################################
# Everything below here needs ArchiveIterator ...