mailsystem: dovecot: Autolearn ham/spam when moving mails

This commit is contained in:
Thomas Preisner 2024-12-05 14:58:21 +01:00
parent d35763a8a2
commit 0ce3ecae52
3 changed files with 76 additions and 2 deletions

View file

@ -0,0 +1,7 @@
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
if environment :matches "imap.user" "*" {
set "username" "${1}";
}
pipe :copy "learn-spam.sh" [ "${username}" ];