Disable encapsulation of spam and marking of it as seen

此提交包含在:
David Piggott
2014-10-28 15:15:21 +00:00
父節點 20c5471a89
當前提交 be9d97902f
共有 2 個檔案被更改,包括 5 行新增 和 1 行删除
-1
查看文件
@@ -1,7 +1,6 @@
require ["regex", "fileinto", "imap4flags"]; require ["regex", "fileinto", "imap4flags"];
if allof (header :regex "X-Spam-Status" "^Yes") { if allof (header :regex "X-Spam-Status" "^Yes") {
setflag "\\Seen";
fileinto "Spam"; fileinto "Spam";
stop; stop;
} }
+5
查看文件
@@ -50,6 +50,11 @@ tools/editconf.py /etc/spamassassin/local.cf -s \
mkdir -p $STORAGE_ROOT/mail/spamassassin mkdir -p $STORAGE_ROOT/mail/spamassassin
chown -R spampd:spampd $STORAGE_ROOT/mail/spamassassin chown -R spampd:spampd $STORAGE_ROOT/mail/spamassassin
# To simplify the correction of false-positives, we do not want to encapsulate
# spam.
tools/editconf.py /etc/spamassassin/local.cf -s \
report_safe=0
# To mark mail as spam or ham, just drag it in or out of the Spam folder. We'll # To mark mail as spam or ham, just drag it in or out of the Spam folder. We'll
# use the Dovecot antispam plugin to detect the message move operation and execute # use the Dovecot antispam plugin to detect the message move operation and execute
# a shell script that invokes learning. # a shell script that invokes learning.