mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-05 08:05:07 +00:00
When a received email contains an inline attachment with a CID but no matching img[src="cid:..."] in the HTML body, tmail previously hid it completely — not shown in the body (no img tag) and not in the attachment panel (isOutsideAttachment returned false due to hasCid+isDispositionInlined). In GetEmailContentInteractor, extract referenced CIDs from the raw HTML before transformation, then split allInlineImages into referenced (rendered in body) and orphaned (no body reference). Orphaned attachments are promoted to the attachment panel so users can see and download them.