]> Git — Sourcephile - sourcephile-nix.git/blob - hosts/mermet/dovecot/sieve/global/report-ham.sieve
carotte: cross-compile more the graphical profile
[sourcephile-nix.git] / hosts / 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}" ];