postvlja bayes_auto_expire na 0
authorIvan Rako <irako@nekkar.carnet.hr>
Mon, 17 Feb 2014 19:44:36 +0000 (20:44 +0100)
committerIvan Rako <irako@nekkar.carnet.hr>
Mon, 17 Feb 2014 19:44:36 +0000 (20:44 +0100)
debian/changelog
debian/postinst
local.cf

index 4a758a6..1919e4e 100644 (file)
@@ -1,3 +1,9 @@
+spamassassin-cn (2:3.3.5) stable; urgency=low
+
+  * bayes_auto_expire postavlja na 0
+
+ -- Ivan Rako <Ivan.Rako@CARNet.hr>  Mon, 17 Feb 2014 20:30:48 +0100
+
 spamassassin-cn (2:3.3.4) stable; urgency=low
 
   * update paketa za Wheezy
 spamassassin-cn (2:3.3.4) stable; urgency=low
 
   * update paketa za Wheezy
index e5d5a8f..3b4574f 100755 (executable)
@@ -238,6 +238,11 @@ if [ -f $examdir/local.cf ]; then
         $confdir/local.cf.$$ || true
     echo "CN: Activated $trusted_networks as trusted networks"
 
         $confdir/local.cf.$$ || true
     echo "CN: Activated $trusted_networks as trusted networks"
 
+    cp_check_and_sed "^bayes_auto_expire 1" \
+        "s#^bayes_auto_expire .*#bayes_auto_expire 0#g" \
+        $confdir/local.cf.$$ || true
+    echo "CN: Set bayes_auto_expire to 0"
+        
     # different than template
     if ! cmp -s $confdir/local.cf.$$ $confdir/local.cf; then
         # backup if not zero size
     # different than template
     if ! cmp -s $confdir/local.cf.$$ $confdir/local.cf; then
         # backup if not zero size
index 631141f..66200b6 100644 (file)
--- a/local.cf
+++ b/local.cf
@@ -10,7 +10,7 @@ bayes_auto_learn 1
 bayes_auto_learn_threshold_nonspam -0.001
 bayes_auto_learn_threshold_spam 10.0
 bayes_use_hapaxes 1
 bayes_auto_learn_threshold_nonspam -0.001
 bayes_auto_learn_threshold_spam 10.0
 bayes_use_hapaxes 1
-bayes_auto_expire 1
+bayes_auto_expire 0
 bayes_ignore_header ReSent-Date
 bayes_ignore_header ReSent-From
 bayes_ignore_header ReSent-Message-ID
 bayes_ignore_header ReSent-Date
 bayes_ignore_header ReSent-From
 bayes_ignore_header ReSent-Message-ID