diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-10-16 15:58:11 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-10-16 15:58:11 +0000 |
commit | c44900a6de80f00215c19fc87a7b7c96aa6edf4e (patch) | |
tree | aafb98be81ab6b58450b4cda80b837b3b0d4077a /dovecot | |
parent | ff62877498e77a36007050184764750bf86ea099 (diff) |
New cronjob to delete old trashed emails.
Diffstat (limited to 'dovecot')
-rwxr-xr-x | dovecot/cron.weekly/local-archivemail | 3 |
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 '{}' ';' |