mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #589] Inline Content IDs (CID) not properly displaying embedded images in HTML emails #377
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#377
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @webfleetneumann on GitHub (Dec 1, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/589
Description
HTML emails with inline images using Content-ID references (CID) are not displaying correctly in Mailpit's web interface and REST interface.
Environment
Steps to Reproduce
Actual Behavior
Expected Behavior
The image should display inline within the email body as intended in HTML view.
Impl-Details
Root cause is located in the enmime parser - see: https://github.com/jhillyerd/enmime/issues/382 and a bugfix PR already created.
Increase the enmime lib version when this PR is merged + released
@axllent commented on GitHub (Dec 1, 2025):
I would have expected this to still work in Mailpit (to provide "backwards compatibility" with some older / broken email clients). Could you please attach a full raw email example for me to test? Thanks.
@homersimpsons commented on GitHub (Dec 8, 2025):
For the record, I have version v1.25.0 through Docker and it works with cid such as (code from "Raw" tab):
@axllent commented on GitHub (Dec 9, 2025):
Thanks for the confirmation @homersimpsons - it works perfectly fine for me too. I've asked @webfleetneumann twice now for a working example of a full ram email (which fails) but he hasn't responded to either request 🤷♂️ The tests he included in his related PR also work perfectly fine without his patch, so I'm suspecting there is AI involved here. I'll check to the upstream PR to see if it made any sense to the author.
@github-actions[bot] commented on GitHub (Dec 17, 2025):
This issue has been marked as stale because it has been open for 7 days with no activity.
@github-actions[bot] commented on GitHub (Dec 21, 2025):
This issue was closed because there has been no activity since being marked as stale.