From f66fb4651481ac215af954d08750a31c73839765 Mon Sep 17 00:00:00 2001 From: Ivan Rako Date: Mon, 17 Feb 2014 20:44:36 +0100 Subject: [PATCH] postvlja bayes_auto_expire na 0 --- debian/changelog | 6 ++++++ debian/postinst | 5 +++++ local.cf | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 4a758a6..1919e4e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +spamassassin-cn (2:3.3.5) stable; urgency=low + + * bayes_auto_expire postavlja na 0 + + -- Ivan Rako Mon, 17 Feb 2014 20:30:48 +0100 + spamassassin-cn (2:3.3.4) stable; urgency=low * update paketa za Wheezy diff --git a/debian/postinst b/debian/postinst index e5d5a8f..3b4574f 100755 --- a/debian/postinst +++ b/debian/postinst @@ -238,6 +238,11 @@ if [ -f $examdir/local.cf ]; then $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 diff --git a/local.cf b/local.cf index 631141f..66200b6 100644 --- 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_expire 1 +bayes_auto_expire 0 bayes_ignore_header ReSent-Date bayes_ignore_header ReSent-From bayes_ignore_header ReSent-Message-ID -- 1.7.10.4