diff options
-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 '{}' ';' |