mirror of
https://github.com/anonaddy/anonaddy.git
synced 2026-04-25 06:05:55 +03:00
[GH-ISSUE #412] Inline Images in emails #873
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/anonaddy#873
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 @m42e on GitHub (Jan 6, 2023).
Original GitHub issue: https://github.com/anonaddy/anonaddy/issues/412
Hi,
I discovered that forwarded mails are not displayed correctly if they contain inline images. After looking into the source I discovered the
content-idwas missing. It seems to be an issue in the mail parser, as it simple declares thecontent-dispositionasattachmentwhereas it was originally declared asinline.I added a fix as a PR here. https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/409
I am not 100% sure if this is enough or if there is something happening in anonaddy in some cases.
Could someone have a look, too?
Best
m42e
@m42e commented on GitHub (Jan 6, 2023):
I just recognised, that the multipart type is also changed from
multipart/relatedtomultipart/mixed.@willbrowningme commented on GitHub (Jan 6, 2023):
Inline images are handled here - https://github.com/anonaddy/anonaddy/blob/master/app/Mail/ForwardEmail.php#L217
This sets the correct
Content-Idfor each inline image.The
Content-Typemay be something that needs looking at though, do you have an.emlexample that replicates the issue?@willbrowningme commented on GitHub (Jan 6, 2023):
Just tested with your
.emlin the pull request and can reproduce this, you're right. Will try to do some debugging shortly.@m42e commented on GitHub (Jan 6, 2023):
I already discovered the issue is not part of anonaddy, but Symphony. I raised a PR there, too: https://github.com/symfony/symfony/pull/48901
@m42e commented on GitHub (Jan 9, 2023):
As the change may take a while to hit this project, there would be a workaround. Replacing the cid with the name upfront. Not a great one to be honest. What do you think?
@willbrowningme commented on GitHub (Jan 10, 2023):
Hmm, might just wait as it seems your PR has now been merged in Symfony, thanks for finding this!
@willbrowningme commented on GitHub (Jun 8, 2023):
Okay Symfony have released version 6.3 so as soon as a new release of php-mime-mail-parser comes out that includes your fix from above then it will all work as expected.
Thanks again for finding this and creating the fixes.