Files
JakeHillion d16db9147b
commit-validation / validate-single-commit (pull_request) Successful in 8s
buildbot/nix-eval Build done. (788 warnings)
buildbot/nix-build Build done.
buildbot/nix-effects Build done.
mail: expunge Marketing mail after two years
Marketing keeps every message it is given, so it only grows.

Run doveadm expunge on a daily timer in the mail container, removing
Marketing mail received more than two years ago, for every account.
Dovecot's mailbox_autoexpunge can't do this: it counts from when a
message was saved to the mailbox, and imported mail was all saved on the
day it was imported.

Test plan:
- CI
- In the mail container on warlock, doveadm search for Marketing BEFORE
  730d matches 7418 of 13450 messages, all read and received before
  26 November 2024. Received dates match each message's sent date,
  while SAVEDBEFORE 730d matches none.
2026-11-26 21:59:23 +00:00
..