Browse Source

Add dovecot sieve file

master
squeaky otter 4 years ago
parent
commit
e73be7e176
Signed by: dashie GPG Key ID: C2D57B325840B755
1 changed files with 22 additions and 0 deletions
  1. +22
    -0
      dovecot.sieve

+ 22
- 0
dovecot.sieve View File

@ -0,0 +1,22 @@
require "fileinto";
require "subaddress";
require "vnd.dovecot.debug";
#SCRIPTNAME: Spam
# Three tests because for some unknown reasons it doesn't always trigger on Yes ???
if header :is "X-Spam" "Yes" {
debug_log "X-Spam Yes";
fileinto "Junk";
stop;
}
if header :is "X-Spam" "yes" {
debug_log "X-Spam yes";
fileinto "Junk";
stop;
}
if header :is "X-Spam-Action" "reject" {
debug_log "X-Spam-Action reject";
fileinto "Junk";
stop;
}

Loading…
Cancel
Save