]> Git — Sourcephile - sourcephile-nix.git/blob - machines/mermet/dovecot/sieve/global/report-ham.sieve
jmtpfs: add MTP support to losurdo
[sourcephile-nix.git] / machines / mermet / dovecot / sieve / global / report-ham.sieve
1 require [ "copy", "environment", "imapsieve", "variables", "vnd.dovecot.pipe" ];
2
3 if environment :matches "imap.mailbox" "*" { set "mailbox" "${1}"; }
4 if string "${mailbox}" "Trash" { stop; }
5 if string "${mailbox}" "Corbeille" { stop; }
6
7 if environment :matches "imap.user" "*" { set "username" "${1}"; }
8
9 pipe :copy :try "learn-ham.sh" [ "${username}" ];