diff options
author | Jesse Luehrs <doy@tozt.net> | 2020-04-25 16:51:26 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2020-04-25 16:51:26 -0400 |
commit | 162bddf1c2289c22dd5dcce21c47d65858147592 (patch) | |
tree | 4b93f7eb53632d2888d0989aa378259a48aa51e4 /modules/mail | |
parent | b92759587be6080b3205e1f04629dcef56c53f54 (diff) | |
download | puppet-tozt-162bddf1c2289c22dd5dcce21c47d65858147592.tar.gz puppet-tozt-162bddf1c2289c22dd5dcce21c47d65858147592.zip |
more tweaks
Diffstat (limited to 'modules/mail')
-rw-r--r-- | modules/mail/files/learn_spam | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/mail/files/learn_spam b/modules/mail/files/learn_spam index 5732ab9..ccdc999 100644 --- a/modules/mail/files/learn_spam +++ b/modules/mail/files/learn_spam @@ -15,14 +15,14 @@ container_dir="${dir#/media/persistent}" container_ham="${container_dir}/ham" container_spam="${container_dir}/spam" -find /media/persistent/mail -type f -mtime -90 | grep /cur/ | grep -v Sent | grep -v Junk | xargs -i ln {} "${dir}/ham" -find /media/persistent/mail -type f -mtime -90 | grep /cur/ | grep -v Sent | grep Junk | xargs -i ln {} "${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" -docker-compose exec imap rspamc -h antispam:11334 -P mailu learn_spam "$container_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" -docker-compose exec imap rspamc -h antispam:11334 -P mailu -f 11 fuzzy_del "$container_ham" +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" -docker-compose exec imap rspamc -h antispam:11334 -P mailu -f 13 fuzzy_del "$container_spam" +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 |