CI / test (push) Successful in 6m22s
mail-parser's body_html() synthesises HTML from a plain-text body when a message has no HTML part, so every plain-text mail was stored — and shown by both clients — as HTML. Only a genuine text/html part is kept now. Bodies stored before this that may be affected are flagged by migration 0011 and re-parsed from their raw message once at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 lines
454 B
SQL
7 lines
454 B
SQL
-- Plain-text mail used to be stored with an HTML body the parser had
|
|
-- synthesised from the text (see src/imap_sync/parse.rs), so clients showed
|
|
-- it as HTML. Rows that may be affected are flagged here and re-parsed from
|
|
-- their stored raw message once, at startup (src/imap_sync/body_backfill.rs).
|
|
ALTER TABLE bodies ADD COLUMN html_checked BOOLEAN NOT NULL DEFAULT true;
|
|
UPDATE bodies SET html_checked = false WHERE html_body LIKE '<html><body>%';
|