Skip to content

Commit

Permalink
Disable encapsulation of spam and marking of it as seen
Browse files Browse the repository at this point in the history
  • Loading branch information
dhpiggott committed Oct 28, 2014
1 parent 20c5471 commit be9d979
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion conf/sieve-spam.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require ["regex", "fileinto", "imap4flags"];

if allof (header :regex "X-Spam-Status" "^Yes") {
setflag "\\Seen";
fileinto "Spam";
stop;
}
Expand Down
5 changes: 5 additions & 0 deletions setup/spamassassin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit be9d979

Please sign in to comment.