diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-06-17 11:45:11 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-06-17 11:45:11 -0400 |
commit | fa15146aafe1fd393280cffd013f85365d8623b3 (patch) | |
tree | ecd2a2a2c75057a813a7c27c2a654b905028f36a /modules/mail/files/learn_spam | |
parent | 5011e793b1427d1cb31ac4c0b012169a68b2bfc9 (diff) | |
download | puppet-tozt-fa15146aafe1fd393280cffd013f85365d8623b3.tar.gz puppet-tozt-fa15146aafe1fd393280cffd013f85365d8623b3.zip |
fix up some more mailu config
Diffstat (limited to 'modules/mail/files/learn_spam')
-rw-r--r-- | modules/mail/files/learn_spam | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/modules/mail/files/learn_spam b/modules/mail/files/learn_spam deleted file mode 100644 index ccdc999..0000000 --- a/modules/mail/files/learn_spam +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -set -eu -set -o pipefail - -cd /media/persistent -mkdir -p mail/tmp -dir=$(mktemp -d -p /media/persistent/mail/tmp learnspam.XXXXXXXX) -trap 'rm -rf $dir' EXIT - -ham="${dir}/ham" -spam="${dir}/spam" -mkdir "$ham" "$spam" - -container_dir="${dir#/media/persistent}" -container_ham="${container_dir}/ham" -container_spam="${container_dir}/spam" - -find /media/persistent/mail -type f -mtime -30 | grep /cur/ | grep -v Sent | grep -v Junk | xargs -i ln {} "${dir}/ham" -find /media/persistent/mail -type f -mtime -30 | grep /cur/ | grep -v Sent | grep Junk | xargs -i ln {} "${dir}/spam" - -docker-compose exec imap rspamc -h antispam:11334 -P mailu learn_ham "$container_ham" > /dev/null || true -docker-compose exec imap rspamc -h antispam:11334 -P mailu learn_spam "$container_spam" > /dev/null || true - -docker-compose exec imap rspamc -h antispam:11334 -P mailu -f 13 fuzzy_add "$container_ham" > /dev/null || true -docker-compose exec imap rspamc -h antispam:11334 -P mailu -f 11 fuzzy_del "$container_ham" > /dev/null || true - -docker-compose exec imap rspamc -h antispam:11334 -P mailu -f 11 fuzzy_add "$container_spam" > /dev/null || true -docker-compose exec imap rspamc -h antispam:11334 -P mailu -f 13 fuzzy_del "$container_spam" > /dev/null || true |