bundles/dovecot: introduce

This commit is contained in:
Franzi 2020-11-07 22:31:47 +01:00
parent f42dda5961
commit 18b573a9c6
Signed by: kunsi
GPG key ID: 12E3D2136B818350
7 changed files with 286 additions and 0 deletions

View file

@ -0,0 +1,15 @@
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
if environment :matches "imap.mailbox" "*" {
set "mailbox" "${1}";
}
if string "${mailbox}" "Trash" {
stop;
}
if environment :matches "imap.user" "*" {
set "username" "${1}";
}
pipe :copy "sa-learn-ham.sh" [ "${username}" ];