summaryrefslogtreecommitdiff
path: root/postfix/cron.weekly/local-purgeoldtrashedmails
blob: e440b02805b98863f62b5201f08d2d972b5a3ab1 (plain)
  1. #!/bin/sh
  2. #
  3. # Purge trashed mails older than 2 months
  4. set -e
  5. 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
  6. exit 0