aboutsummaryrefslogtreecommitdiff
path: root/modules/private/mail/sieve_scripts
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-06-23 21:04:55 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-06-29 15:14:43 +0200
commita929614f94d11a4f397e72e74f38b3212c24cdee (patch)
treea81b3cee45586d685c1b7c6e5c39372f203aa00d /modules/private/mail/sieve_scripts
parent53fa9f9e7d87835d6137a029fe80b3195e635797 (diff)
downloadNix-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.sieve11
-rw-r--r--modules/private/mail/sieve_scripts/report_spam.sieve3
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 @@
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
11pipe :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 @@
1require ["vnd.dovecot.pipe", "copy", "imapsieve" ];
2
3pipe :copy "imapsieve_copy" [ "spam" ];