Files
jmap-webmail/components
Matthieu MALVACHE 5f2792c991 fix(email): render Gmail-origin attachments (#58)
Gmail stamps a Content-ID on every attachment it sends, even when the
HTML body never references the attachment inline. The viewer filtered
attachments by "!a.cid" so anything carrying a cid was assumed to be
an inline image and hidden from the attachment panel — the email
showed the paperclip indicator but no downloadable block, matching
the report's symptoms.

Compute a set of cids actually cited as cid:... inside the HTML body
and mark an attachment as inline only when its cid is in that set.
Non-cited cid-bearing attachments now render in the panel like any
other. Applied in both the single-message viewer and the threaded
conversation view.

Closes #58. Thanks @melges-morgen for the repro.
2026-04-17 14:46:34 +02:00
..