| Matthias Andreas Benkard | 4edeb9f | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 1 | require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; |
| 2 | |||||
| 3 | if environment :matches "imap.mailbox" "*" { | ||||
| 4 | set "mailbox" "${1}"; | ||||
| 5 | } | ||||
| 6 | |||||
| 7 | if string "${mailbox}" "Trash" { | ||||
| 8 | stop; | ||||
| 9 | } | ||||
| 10 | |||||
| 11 | pipe :copy "rspamd-pipe-ham"; | ||||