summaryrefslogtreecommitdiff
path: root/postfix
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-04-02 01:34:06 +0200
committerJonas Smedegaard <dr@jones.dk>2011-04-02 01:34:06 +0200
commit199410b285c233a4c990630e275dd6b63755ebba (patch)
treef7aaf31f9f58fd59ea4f97ed1a2e009b5cfbe166 /postfix
parentc4593f80d207b067079c85f1bde5bc792c70659e (diff)
Improve cleanup script: use internal -remove find option.
Diffstat (limited to 'postfix')
-rwxr-xr-xpostfix/cron.weekly/local-purgeoldtrashedmails2
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