summaryrefslogtreecommitdiff
path: root/postfix/cron.weekky/local-purgeoldtrashedmails
blob: 767450845ae7496daa3a6597f54daf64fdb1fbb1 (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 -type f -mtime +60 -exec rm -f '{}' ';'
  6. exit 0