From c44900a6de80f00215c19fc87a7b7c96aa6edf4e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 16 Oct 2006 15:58:11 +0000 Subject: New cronjob to delete old trashed emails. --- dovecot/cron.weekly/local-archivemail | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 dovecot/cron.weekly/local-archivemail (limited to 'dovecot') 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 '{}' ';' -- cgit v1.2.3