diff options
author | Jonas Smedegaard <dr@jones.dk> | 2011-04-02 01:34:06 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2011-04-02 01:34:06 +0200 |
commit | 199410b285c233a4c990630e275dd6b63755ebba (patch) | |
tree | f7aaf31f9f58fd59ea4f97ed1a2e009b5cfbe166 /postfix | |
parent | c4593f80d207b067079c85f1bde5bc792c70659e (diff) |
Improve cleanup script: use internal -remove find option.
Diffstat (limited to 'postfix')
-rwxr-xr-x | postfix/cron.weekly/local-purgeoldtrashedmails | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postfix/cron.weekly/local-purgeoldtrashedmails b/postfix/cron.weekly/local-purgeoldtrashedmails index 2acd612..e440b02 100755 --- a/postfix/cron.weekly/local-purgeoldtrashedmails +++ b/postfix/cron.weekly/local-purgeoldtrashedmails @@ -4,6 +4,6 @@ set -e -find /home/*/Maildir/.Trash /home/*/Maildir/.Trash.* /home/*/Maildir/.INBOX_Trash /home/*/Maildir/.trash /home/*/Maildir/.Deleted\ Messages /home/*/Maildir/.Deleted\ Items /home/*/Maildir/.Slettet\ post /home/*/Maildir/.Junk -type f -mtime +60 -exec rm -f '{}' ';' +find /home/*/Maildir/.Trash /home/*/Maildir/.Trash.* /home/*/Maildir/.INBOX_Trash /home/*/Maildir/.trash /home/*/Maildir/.Deleted\ Messages /home/*/Maildir/.Deleted\ Items /home/*/Maildir/.Slettet\ post /home/*/Maildir/.Junk -type f -mtime +60 -delete exit 0 |