lots: shellcheck, streaming stuff, fixes
[distro-setup] / mailclean
index e79794a5a6fe236e38750258583f248ed188f976..7752275423c9f57e7ca1ff77366d42ae67ec85ec 100755 (executable)
--- a/mailclean
+++ b/mailclean
@@ -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