Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image attachments no longer displayed in 1.6 due to #7184 #8870

Closed
hthpr opened this issue Jan 19, 2023 · 4 comments
Closed

image attachments no longer displayed in 1.6 due to #7184 #8870

hthpr opened this issue Jan 19, 2023 · 4 comments

Comments

@hthpr
Copy link

hthpr commented Jan 19, 2023

I upgraded from 1.5.3 to 1.6 and I received a report that attached images from Verizon (vzwpix.com) are no longer displayed in RC.

I narrowed it down to issue #7184. If I comment line 209-211 for program/actions/mail/show.php in that commit the attachment can be viewed again. Attached are a couple screenshots of what the message display looks like with the 1.6 release and then the code commented.

I also included with some privacy the original message headers and start of attachment content. I have removed the data of the attachment.
msg.txt
I'm sure it's an issue with the MIME [headers.]([url]([url](
code commented
stock 1 6)))

@alecpl
Copy link
Member

alecpl commented Jan 24, 2023

Confirmed. It's also related to

$struct->disposition = 'inline';

@conathan
Copy link

I wanted to do a workaround for this to work for our client (#9147), and made a patch.

Disclaimer: do not use. There is a lot wrong with this approach (and wrong way to address the issue even)

If I understand the issue correctly, attachments that do not set Content-Disposition, are treated as inline images which do not appear in the list of downloadable attachments. And in cases where not used by the html, also don't show up in the message body either.

I imagine a proper approach would be to check the message body to see if the image is actually used by the html code (unsure how to accomplish this at this time).

So instead, patch checks if the return-path domain is vzwpix.com, (Testing this, works when message is direct, but not when viewing a .eml attachment from a forward message as. This is due to the headers I am inspecting are from the main message, not the .eml message). - Unsure how to get access to the .eml headers at this time.

roundcubemail-verizon_fixattachments.patch.txt

@iredmail
Copy link
Contributor

Dear @alecpl

Any update?

@alecpl
Copy link
Member

alecpl commented Oct 21, 2023

This is a more generic issue, that is not trivial to fix. But I made a fix for application/smil case described in here.

@alecpl alecpl closed this as completed Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants