mirror of
https://github.com/root-fr/jmap-webmail.git
synced 2026-09-23 16:01:15 +00:00
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.