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

Display inline images even if they have incorrect content-type #8158

Closed
toteph42 opened this issue Aug 4, 2021 · 4 comments
Closed

Display inline images even if they have incorrect content-type #8158

toteph42 opened this issue Aug 4, 2021 · 4 comments

Comments

@toteph42
Copy link

toteph42 commented Aug 4, 2021

Hi attached MIME is shown as:

grafik

"27 Keule.gif" should be shown inline and NOT as an attachment.
MIME03.txt

@toteph42
Copy link
Author

toteph42 commented Aug 4, 2021

Forgot to mention: RoundCube 1.4.11, no plugins activated.

@alecpl
Copy link
Member

alecpl commented Aug 6, 2021

The problem is with the attachment Content-Type. The http response to the image request is "This attachment is suspicious because its type doesn't match the type declared in the message. If you do not trust the sender, you shouldn't open it in the browser because it may contain malicious contents. Expected: text/calendar (.gif); found: image/gif (.gif)".

While it's an obvious mistake in the message, I guess we could be smarter here. Thunderbird, for example, displays the message as expected.

@alecpl alecpl added this to the later milestone Aug 6, 2021
@alecpl alecpl changed the title Inline graphics Display inline images even if they have incorrect content-type Aug 6, 2021
@alecpl alecpl added bug and removed enhancement labels Aug 6, 2021
@toteph42
Copy link
Author

toteph42 commented Aug 6, 2021

Thank you so much for clarification! I will contact developer of mail creation program if they can take more care when creating inline graphics.

@alecpl
Copy link
Member

alecpl commented Aug 15, 2021

Fixed.

@alecpl alecpl closed this as completed Aug 15, 2021
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

2 participants