bundlewrap/bundles/dovecot/files/learn-ham.sieve

16 lines
320 B
Sieve
Raw Permalink Normal View History

2020-11-07 21:31:47 +00:00
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
if environment :matches "imap.mailbox" "*" {
set "mailbox" "${1}";
2020-11-07 21:31:47 +00:00
}
if string "${mailbox}" "Trash" {
stop;
2020-11-07 21:31:47 +00:00
}
if environment :matches "imap.user" "*" {
set "username" "${1}";
2020-11-07 21:31:47 +00:00
}
pipe :copy "sa-learn-ham.sh" [ "${username}" ];