You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
471 B

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;
}