fix: clean up related mails before deleting address in admin API (#1081)

* fix: clean up related mails before deleting address in admin API

* fix: run admin address deletion in a single D1 batch
This commit is contained in:
Maxim Lapan
2026-07-11 14:06:14 +08:00
committed by GitHub
parent 565bb839db
commit 99b332345b
3 changed files with 31 additions and 20 deletions
+1
View File
@@ -15,6 +15,7 @@
### Bug Fixes
- fix: |Admin| When deleting an address from the admin panel, delete its mails, sender records, sendbox and auto-reply entries before removing the address row itself; previously the address row was deleted first, so the name-based subqueries matched nothing and the mails were left orphaned in the database
- fix: |AI Extract| Strengthen the prompt to keep original link domains from the email, preventing small models from rewriting verification-link domains (issue #1072)
- fix: |AI Extract| Convert HTML-only mail bodies into compact readable text before sending them to Workers AI, preventing long templates from pushing verification codes past the 4000-character truncation window
- fix: |Frontend| Add mobile Header page padding so the title and menu button no longer sit too close to the screen edge