Additional example for expunge, useful for cleanup

Additional example for expunge, useful for cleanup of old mails. I used this to clean mails that were older than 5 years.
Dieser Commit ist enthalten in:
Braintelligence 2020-10-05 10:03:45 +02:00 committet von GitHub
Ursprung 7fb5007f1c
Commit 1f6c8a416b
Es konnte kein GPG-SchlĂĽssel zu dieser Signatur gefunden werden
GPG-SchlĂĽssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -16,6 +16,12 @@ Delete **all** user's mails in the junk folder that are **older** than 7 days
docker-compose exec dovecot-mailcow doveadm expunge -A mailbox 'Junk' savedbefore 7d
```
Delete **all** mails (of all users) in **all** folders that are **older** than 52 weeks (internal date of the mail, not the date it was saved on the system => `before` instead of `savedbefore`). Useful for deleting very old mails on all users and folders (thus especially useful for GDPR-compliance).
```
docker-compose exec dovecot-mailcow doveadm expunge -A mailbox % before 52w
```
Delete mails inside a custom folder **inside** a user's inbox that are **not** flagged and **older** than 2 weeks
```