mailsystem: dovecot: Autolearn ham/spam when moving mails

This commit is contained in:
Thomas Preisner 2024-12-05 14:58:21 +01:00
parent 9149f03384
commit aacf9a9b8c
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}" ];