X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mailclean;h=7752275423c9f57e7ca1ff77366d42ae67ec85ec;hb=07fbcf11a78d2ee20697eb98f5b7eeaa2475f1d1;hp=31a431ab0b3fdd3c8f42cb404b8b214b2523f6b4;hpb=83a72c65a1a20398c78e41147faa8195adda710c;p=distro-setup diff --git a/mailclean b/mailclean index 31a431a..7752275 100755 --- a/mailclean +++ b/mailclean @@ -1,7 +1,7 @@ #!/bin/bash if [ -z "$BASH_VERSION" ]; then echo "error: shell is not bash" >&2; exit 1; fi -source /a/bin/errhandle/err +source /a/bin/bash-bear-trap/bash-bear source /a/bin/bash_unpublished/source-state if [[ $HOSTNAME != "$MAIL_HOST" ]]; then @@ -65,6 +65,12 @@ archive() { } cd /m/md -archive 800 ./!(*archive|Drafts|Sent|INBOX)/*(cur|new) ./l/!(*archive)/*(cur|new) +archive 800 ./!(*archive|board|Drafts|Sent|INBOX)/*(cur|new) ./l/!(*archive)/*(cur|new) archive 60 ./{sysadmin,rtcc,fsfcc,fsfmembers}/{cur,new} archive 30 ./Junk/{cur,new} + +# This is a generally useless file which will grow to 1gb and eat up memory. +# https://doc.dovecot.org/admin_manual/known_issues/large_cache/ +# I could probably disable the cache for this folder, but that would +# also mean I'm testing less of the full functionality. +rm -f /m/md/l/testignore/dovecot.index.cache