summaryrefslogtreecommitdiff
path: root/dovecot
diff options
context:
space:
mode:
Diffstat (limited to 'dovecot')
-rwxr-xr-xdovecot/cron.weekly/local-archivemail3
1 files changed, 3 insertions, 0 deletions
diff --git a/dovecot/cron.weekly/local-archivemail b/dovecot/cron.weekly/local-archivemail
new file mode 100755
index 0000000..5923fc0
--- /dev/null
+++ b/dovecot/cron.weekly/local-archivemail
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+find /home -mindepth 3 -maxdepth 3 -type d -iregex '/home/[^/]+/Maildir/\.\(\(mail\|INBOX\)\.\)?\(Trash\|Deleted \(Messages\|Items\)\)' -exec archivemail --delete --quiet '{}' ';'