diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-23 21:04:55 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-29 15:14:43 +0200 |
commit | a929614f94d11a4f397e72e74f38b3212c24cdee (patch) | |
tree | a81b3cee45586d685c1b7c6e5c39372f203aa00d /modules/private/mail/sieve_scripts | |
parent | 53fa9f9e7d87835d6137a029fe80b3195e635797 (diff) | |
download | Nix-a929614f94d11a4f397e72e74f38b3212c24cdee.tar.gz Nix-a929614f94d11a4f397e72e74f38b3212c24cdee.tar.zst Nix-a929614f94d11a4f397e72e74f38b3212c24cdee.zip |
Configure mail (dovecot, postfix, spam checks)
Diffstat (limited to 'modules/private/mail/sieve_scripts')
-rw-r--r-- | modules/private/mail/sieve_scripts/report_ham.sieve | 11 | ||||
-rw-r--r-- | modules/private/mail/sieve_scripts/report_spam.sieve | 3 |
2 files changed, 14 insertions, 0 deletions
diff --git a/modules/private/mail/sieve_scripts/report_ham.sieve b/modules/private/mail/sieve_scripts/report_ham.sieve new file mode 100644 index 0000000..f9b8481 --- /dev/null +++ b/modules/private/mail/sieve_scripts/report_ham.sieve | |||
@@ -0,0 +1,11 @@ | |||
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 "imapsieve_copy" [ "ham" ]; | ||
diff --git a/modules/private/mail/sieve_scripts/report_spam.sieve b/modules/private/mail/sieve_scripts/report_spam.sieve new file mode 100644 index 0000000..9a1f794 --- /dev/null +++ b/modules/private/mail/sieve_scripts/report_spam.sieve | |||
@@ -0,0 +1,3 @@ | |||
1 | require ["vnd.dovecot.pipe", "copy", "imapsieve" ]; | ||
2 | |||
3 | pipe :copy "imapsieve_copy" [ "spam" ]; | ||