mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
Disable encapsulation of spam and marking of it as seen
This commit is contained in:
parent
20c5471a89
commit
be9d97902f
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user