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

Roundcube is showing both HTML and plain text versions of emails #9749

Open
2 tasks done
stratoss opened this issue Jan 10, 2025 · 2 comments
Open
2 tasks done

Roundcube is showing both HTML and plain text versions of emails #9749

stratoss opened this issue Jan 10, 2025 · 2 comments

Comments

@stratoss
Copy link

Prerequisites

  • I have searched for duplicate or closed issues
  • I can recreate the issue with all plugins disabled

Describe the issue

Sample e-mail:

Content-Type: multipart/alternative; boundary="boundary1"

--boundary1
Content-Type: text/plain; charset="UTF-8"

This is the plain text content.

--boundary1
Content-Type: text/html; charset="UTF-8"

This is the HTML content.

--boundary1--

Latest version of roundcube shows both versions. I've temporarily fixed it by switching the default $parse_alternative from false to true in rcube_message.php.

What browser(s) are you seeing the problem on?

Chrome, Edge, Firefox, Safari

What version of PHP are you using?

v8.2

What version of Roundcube are you using?

v1.6.9

JavaScript errors

No response

PHP errors

No response

@stratoss stratoss changed the title Roundcube is showing both HTML and plain versions of emails Roundcube is showing both HTML and plaintext versions of emails Jan 10, 2025
@stratoss stratoss changed the title Roundcube is showing both HTML and plaintext versions of emails Roundcube is showing both HTML and plain text versions of emails Jan 10, 2025
@alecpl
Copy link
Member

alecpl commented Jan 12, 2025

I'm unable to reproduce in the release-1.6 branch. I don't see any unreleased changes in rcube_message in this branch. So, I suspect it's something external.

I tested with PHP 8.1. Could you enable imap_debug and provide the log? Also, what plugins?

@stratoss
Copy link
Author

stratoss commented Jan 20, 2025

I've tried without any plugins, to exclude them as a potential cause. The key is multipart/alternative. I've tried on other Roundcube instances (with older versions) - the bug is persistent.

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