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_bin/imapsieve_copy | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 systems/eldiron/mail/sieve_bin/imapsieve_copy (limited to 'systems/eldiron/mail/sieve_bin') diff --git a/systems/eldiron/mail/sieve_bin/imapsieve_copy b/systems/eldiron/mail/sieve_bin/imapsieve_copy new file mode 100755 index 0000000..2ca1f23 --- /dev/null +++ b/systems/eldiron/mail/sieve_bin/imapsieve_copy @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +# Inspired from https://docs.iredmail.org/dovecot.imapsieve.html + +MSG_TYPE="$1" +OUTPUT_DIR="/var/lib/vhost/.rspamd/${USER}/pending/${MSG_TYPE}" +FILE="${OUTPUT_DIR}/$(date +%Y%m%d%H%M%S)-${RANDOM}${RANDOM}.eml" +mkdir -p "${OUTPUT_DIR}" +cat > ${FILE} < /dev/stdin -- cgit v1.2.3