Self-host your own digital island
1require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
2
3if environment :matches "imap.mailbox" "*" {
4 set "mailbox" "${1}";
5}
6
7if string "${mailbox}" "Trash" {
8 stop;
9}
10
11if environment :matches "imap.user" "*" {
12 set "username" "${1}";
13}
14
15pipe :copy "sa-learn-ham.sh" [ "${username}" ];