diff options
Diffstat (limited to 'postfix/cron.weekky/local-purgeoldtrashedmails')
-rwxr-xr-x | postfix/cron.weekky/local-purgeoldtrashedmails | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/postfix/cron.weekky/local-purgeoldtrashedmails b/postfix/cron.weekky/local-purgeoldtrashedmails new file mode 100755 index 0000000..205585b --- /dev/null +++ b/postfix/cron.weekky/local-purgeoldtrashedmails @@ -0,0 +1,9 @@ +#!/bin/sh +# +# Purge trashed mails older than 2 months + +set -e + +find /home/*/Maildir/.Trash /home/*/Maildir/.trash /home/*/Maildir/.Deleted\ Messages /home/*/Maildir/.Deleted\ Items -type f -mtime +60 -exec rm -f '{}' ';' + +exit 0 |