Merge pull request #504 from chatmail/adb/delete-big-messages

delete big messages after 7 days
This commit is contained in:
adb
2025-03-04 17:40:44 +01:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,9 @@
## untagged
- cmdeploy dovecot: delete big messages after 7 days
([#504](https://github.com/chatmail/server/pull/504))
- mtail: fix getting logs from STDIN
([#502](https://github.com/chatmail/chatmail/pull/502))

View File

@@ -1,3 +1,5 @@
# delete already seen big mails after 7 days, in the INBOX
2 0 * * * vmail find {{ config.mailboxes_dir }} -path '*/cur/*' -mtime +7 -size +200k -type f -delete
# delete all mails after {{ config.delete_mails_after }} days, in the Inbox
2 0 * * * vmail find {{ config.mailboxes_dir }} -path '*/cur/*' -mtime +{{ config.delete_mails_after }} -type f -delete
# or in any IMAP subfolder