Marvin Mieth b563f912c7
fix: clear attachments and headers in the email cleanup job (#443)
* fix: clear attachments and headers in the email cleanup job

The retention cleanup job only nulls text and html, but attachments
(base64-encoded, typically the largest column) and headers survive it.
Successful sends already clear both right after sending, so this mainly
affects failed, cancelled and stuck emails, which keep their attachments
forever even with EMAIL_CLEANUP_DAYS configured. Include both columns in
the cleanup update and extend the filter so already-clean rows are still
skipped.

* docs: document the EMAIL_CLEANUP_DAYS retention setting

The setting existed in the env schema but was not mentioned in the
self-hosting docs or the example env file.

* docs: clarify cleanup wording

Clears values, does not delete columns. Drop the claim about non-numeric
values, since the setting is parsed leniently.
2026-08-30 07:04:24 +10:00
..
2025-09-03 22:46:03 +10:00
2025-10-19 08:15:04 +11:00
2025-09-03 22:46:03 +10:00
2025-06-08 10:41:56 +10:00

Mintlify Starter Kit

Click on Use this template to copy the Mintlify starter kit. The starter kit contains examples including

  • Guide pages
  • Navigation
  • Customizations
  • API Reference pages
  • Use of popular components

Development

Install the Mintlify CLI to preview the documentation changes locally. To install, use the following command

npm i -g mintlify

Run the following command at the root of your documentation (where mint.json is)

mintlify dev

Publishing Changes

Install our GitHub App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.

Troubleshooting

  • Mintlify dev isn't running - Run mintlify install it'll re-install dependencies.
  • Page loads as a 404 - Make sure you are running in a folder with mint.json