#27 Junk with sieve
This commit is contained in:
parent
54780eb97a
commit
d703bb569a
4 changed files with 14 additions and 8 deletions
|
@ -80,7 +80,7 @@ plugin {
|
||||||
# Identical to sieve_before, only the specified scripts are executed after the
|
# Identical to sieve_before, only the specified scripts are executed after the
|
||||||
# user's script (only when keep is still in effect!). Multiple script
|
# user's script (only when keep is still in effect!). Multiple script
|
||||||
# locations can be specified by appending an increasing number.
|
# locations can be specified by appending an increasing number.
|
||||||
#sieve_after =
|
sieve_after = /etc/dovecot/sieve-after
|
||||||
#sieve_after2 =
|
#sieve_after2 =
|
||||||
#sieve_after2 = (etc...)
|
#sieve_after2 = (etc...)
|
||||||
|
|
||||||
|
|
6
config/dovecot/sieve-after/spam-to-folder.sieve
Normal file
6
config/dovecot/sieve-after/spam-to-folder.sieve
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
require ["fileinto","mailbox"];
|
||||||
|
|
||||||
|
if header :contains "X-Spam-Flag" "YES" {
|
||||||
|
fileinto :create "Junk";
|
||||||
|
stop;
|
||||||
|
}
|
BIN
config/dovecot/sieve-after/spam-to-folder.svbin
Normal file
BIN
config/dovecot/sieve-after/spam-to-folder.svbin
Normal file
Binary file not shown.
|
@ -9,13 +9,13 @@
|
||||||
|
|
||||||
# Add *****SPAM***** to the Subject header of spam e-mails
|
# Add *****SPAM***** to the Subject header of spam e-mails
|
||||||
#
|
#
|
||||||
rewrite_header Subject *****SPAM*****
|
#rewrite_header Subject *****SPAM*****
|
||||||
|
|
||||||
|
|
||||||
# Save spam messages as a message/rfc822 MIME attachment instead of
|
# Save spam messages as a message/rfc822 MIME attachment instead of
|
||||||
# modifying the original message (0: off, 2: use text/plain instead)
|
# modifying the original message (0: off, 2: use text/plain instead)
|
||||||
#
|
#
|
||||||
report_safe 1
|
report_safe 0
|
||||||
|
|
||||||
|
|
||||||
# Set which networks or hosts are considered 'trusted' by your mail
|
# Set which networks or hosts are considered 'trusted' by your mail
|
||||||
|
@ -41,21 +41,21 @@ use_bayes 1
|
||||||
|
|
||||||
# Bayesian classifier auto-learning (default: 1)
|
# Bayesian classifier auto-learning (default: 1)
|
||||||
#
|
#
|
||||||
bayes_auto_learn 1
|
bayes_auto_learn 1
|
||||||
|
|
||||||
|
|
||||||
# Set headers which may provide inappropriate cues to the Bayesian
|
# Set headers which may provide inappropriate cues to the Bayesian
|
||||||
# classifier
|
# classifier
|
||||||
#
|
#
|
||||||
# bayes_ignore_header X-Bogosity
|
bayes_ignore_header X-Bogosity
|
||||||
# bayes_ignore_header X-Spam-Flag
|
bayes_ignore_header X-Spam-Flag
|
||||||
# bayes_ignore_header X-Spam-Status
|
bayes_ignore_header X-Spam-Status
|
||||||
|
|
||||||
|
|
||||||
# Whether to decode non- UTF-8 and non-ASCII textual parts and recode
|
# Whether to decode non- UTF-8 and non-ASCII textual parts and recode
|
||||||
# them to UTF-8 before the text is given over to rules processing.
|
# them to UTF-8 before the text is given over to rules processing.
|
||||||
#
|
#
|
||||||
# normalize_charset 1
|
normalize_charset 1
|
||||||
|
|
||||||
# Some shortcircuiting, if the plugin is enabled
|
# Some shortcircuiting, if the plugin is enabled
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue