You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
568 B
Sieve
15 lines
568 B
Sieve
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "imap4flags"];
|
|
|
|
if environment :is "imap.cause" "COPY" {
|
|
pipe :copy "rspamd-learn-spam.sh";
|
|
pipe :copy "rspamd-learn-fuzzy-spam.sh";
|
|
}
|
|
|
|
# Catch replied or forwarded spam
|
|
elsif anyof (allof (hasflag "\\Answered",
|
|
environment :contains "imap.changedflags" "\\Answered"),
|
|
allof (hasflag "$Forwarded",
|
|
environment :contains "imap.changedflags" "$Forwarded")) {
|
|
pipe :copy "rspamd-learn-spam.sh";
|
|
pipe :copy "rspamd-learn-fuzzy-spam.sh";
|
|
} |