1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-12-22 07:17:05 +00:00

Disable encapsulation of spam and marking of it as seen

This commit is contained in:
David Piggott 2014-10-19 16:32:31 +01:00
parent 20c5471a89
commit be9d97902f
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,6 @@
require ["regex", "fileinto", "imap4flags"];
if allof (header :regex "X-Spam-Status" "^Yes") {
setflag "\\Seen";
fileinto "Spam";
stop;
}

View File

@ -50,6 +50,11 @@ tools/editconf.py /etc/spamassassin/local.cf -s \
mkdir -p $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
# use the Dovecot antispam plugin to detect the message move operation and execute
# a shell script that invokes learning.