init spams to junk

This commit is contained in:
youtous 2020-05-02 18:39:51 +02:00
parent 7eacb4cfc0
commit d829905cf7
No known key found for this signature in database
GPG key ID: 592173AE8CD254A5
7 changed files with 126 additions and 13 deletions

View file

@ -32,7 +32,7 @@ plugin {
# file names, using a normal 8bit per-character comparison. Multiple script
# file or directory paths can be specified by appending an increasing number.
#sieve_before = /usr/lib/dovecot/sieve-global/before.dovecot.sieve
#sieve_before2 =
#sieve_before2 = /usr/lib/dovecot/sieve-global/before.spam.sieve
#sieve_before3 = (etc...)
# Identical to sieve_before, only the specified scripts are executed after the

View file

@ -0,0 +1,4 @@
require "fileinto";
if header :contains "X-Spam-Flag" "YES" {
fileinto "Junk";
}