[core] Sanitiser: Colours::Dark for the dark reader (backgrounds out, colours lifted to 4.5 : 1, rule borders, theme links, colours_changed)

This commit is contained in:
2026-11-22 21:24:54 +01:00
parent f65c959bb4
commit 15c1d0e7c2
9 changed files with 585 additions and 22 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ src/compose.rs compose (mail-builder): multipart/alternative, attachments, re
src/filename.rs hostile attachment names -> safe names (../, reserved Windows names, bidi controls)
src/thread.rs threading: Message-ID / In-Reply-To / References, normalised-subject fallback
src/rules.rs incoming rules (from/to/subject contains -> move to folder), first match wins; Sieve export
src/sanitize.rs HTML sanitiser (ammonia allow-list), remote images -> placeholders
src/sanitize.rs HTML sanitiser (ammonia allow-list), remote images -> placeholders, the dark reader's colours
src/sanitize/colour.rs CSS colours: parse, WCAG contrast, grey, lighten in hue to 4.5 : 1
src/search.rs search query parser (free text, from:, to:, subject:, has:attachment, is:starred) -> FTS5
tests/ the mandatory tests (fixtures are built in code; no corpora in git)
```