From 1a64deeb894dc95e2645a75771732c6cc53a79ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Wed, 4 Oct 2023 01:35:06 +0200 Subject: Squash changes containing private information There were a lot of changes since the previous commit, but a lot of them contained personnal information about users. All thos changes got stashed into a single commit (history is kept in a different place) and private information was moved in a separate private repository --- systems/eldiron/mail/sieve_scripts/backup.sieve | 7 +++++++ systems/eldiron/mail/sieve_scripts/report_ham.sieve | 11 +++++++++++ systems/eldiron/mail/sieve_scripts/report_spam.sieve | 3 +++ 3 files changed, 21 insertions(+) create mode 100644 systems/eldiron/mail/sieve_scripts/backup.sieve create mode 100644 systems/eldiron/mail/sieve_scripts/report_ham.sieve create mode 100644 systems/eldiron/mail/sieve_scripts/report_spam.sieve (limited to 'systems/eldiron/mail/sieve_scripts') diff --git a/systems/eldiron/mail/sieve_scripts/backup.sieve b/systems/eldiron/mail/sieve_scripts/backup.sieve new file mode 100644 index 0000000..3014c0a --- /dev/null +++ b/systems/eldiron/mail/sieve_scripts/backup.sieve @@ -0,0 +1,7 @@ +# vim: filetype=sieve +require ["copy","mailbox","fileinto","regex"]; +if header :is "X-Spam" "Yes" { + fileinto :create :copy "Backup/Spam"; +} else { + fileinto :create :copy "Backup/Ham"; +} diff --git a/systems/eldiron/mail/sieve_scripts/report_ham.sieve b/systems/eldiron/mail/sieve_scripts/report_ham.sieve new file mode 100644 index 0000000..f9b8481 --- /dev/null +++ b/systems/eldiron/mail/sieve_scripts/report_ham.sieve @@ -0,0 +1,11 @@ +require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"]; + +if environment :matches "imap.mailbox" "*" { + set "mailbox" "${1}"; +} + +if string "${mailbox}" "Trash" { + stop; +} + +pipe :copy "imapsieve_copy" [ "ham" ]; diff --git a/systems/eldiron/mail/sieve_scripts/report_spam.sieve b/systems/eldiron/mail/sieve_scripts/report_spam.sieve new file mode 100644 index 0000000..9a1f794 --- /dev/null +++ b/systems/eldiron/mail/sieve_scripts/report_spam.sieve @@ -0,0 +1,3 @@ +require ["vnd.dovecot.pipe", "copy", "imapsieve" ]; + +pipe :copy "imapsieve_copy" [ "spam" ]; -- cgit v1.2.3