mirror of
https://github.com/spartanz51/tutabridge.git
synced 2026-06-24 10:54:32 +02:00
4bb07798ddd9a5305b1ad3c22c9060cddc82329a
`load_mail_details_impl` now mirrors the TS `loadMailDetails` router: when `mail.mailDetailsDraft` is set, call the new `MailFacade::load_mail_details_draft` (sdk-mail-draft-details); when `mail.mailDetails` is set, keep the existing blob path; otherwise return `Ok(None)` — the legacy/malformed leaf the prefetch loop has to handle anyway. Practical effect: the ~88 drafts on the test account that previously logged "No details for mail" on every store change now decrypt their body normally and surface it through IMAP FETCH. The `Ok(None)` branch in `prefetch_details` was the secondary cause of the log spam — with the prefetch loop now event-driven (Phase 2.5), every `MailStore` bump re-queued the same 88 drafts because `has_eml` stayed false. Persist a headers-only `.eml` and `mark_has_details = 1` on that branch so the row is considered done; the next sweep skips it, and the client at least gets the headers for a mail whose body we genuinely cannot locate.
Languages
Rust
89.5%
TypeScript
5.9%
CSS
2.5%
Python
1.2%
Shell
0.7%
Other
0.1%