Dovecot relevante Files hinzugefügt

This commit is contained in:
Patrick Niebeling
2022-08-11 10:14:16 +02:00
parent cd3a5891e6
commit bde33a1c14
4 changed files with 45 additions and 0 deletions

13
dovecot/report-spam.sieve Normal file
View File

@ -0,0 +1,13 @@
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "imap4flags"];
if environment :is "imap.cause" "COPY" {
pipe :copy "sa-learn-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 "sa-learn-spam.sh";
}