summaryrefslogtreecommitdiff
path: root/dovecot
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-10-16 15:58:11 +0000
committerJonas Smedegaard <dr@jones.dk>2006-10-16 15:58:11 +0000
commitc44900a6de80f00215c19fc87a7b7c96aa6edf4e (patch)
treeaafb98be81ab6b58450b4cda80b837b3b0d4077a /dovecot
parentff62877498e77a36007050184764750bf86ea099 (diff)
New cronjob to delete old trashed emails.
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 '{}' ';'