Use Message-ID for cache keys

This commit is contained in:
Jordan Wages 2025-06-29 02:37:05 -05:00
commit 8ba2a931b9
3 changed files with 21 additions and 6 deletions

View file

@ -62,7 +62,7 @@ text extracted from all text parts.
### Cache Strategy
`aiCache` persists classification results. Each key is the SHA256 hex of
`"<message id>|<criterion>"` and maps to an object with `matched` and `reason`
`"<message Message-ID>|<criterion>"` and maps to an object with `matched` and `reason`
properties. Any legacy `aiReasonCache` data is merged into `aiCache` the first
time the add-on loads after an update.