Ticket #1484950 (new Bugs)

Opened 9 months ago

Last modified 9 days ago

both multipart/alternative parts are shown in a nested message

Reported by: mikelward Owned by:
Priority: 5 Milestone: 0.2.1
Component: MIME parsing Version: 0.1-stable
Severity: minor Keywords:
Cc:

Description

I sent a message from Roundcube in HTML format. It sends a message in MIME multipart/alternative format with the first part being text/plain and the second part being text/html. A MIME mail client is supposed to display only the HTML part if it supports HTML. That part seems to be working fine.

The message bounced, and I got a nested MIME message back with the reason for the bounce as the first part and my original message as the second part. As my original message was also a MIME message, the structure of the bounce message looked like: text/plain message/rfc822

multipart/alternative

text/plain text/html

When viewing the bounce message, RoundCube displayed both the text/plain and the text/html version of the nested message. It should only display the text/html version.

May be related to ticket 1484627.

Attachments

multipart.txt (4.1 kB) - added by mikelward 9 months ago.
source of offending message (sanitized version)

Change History

Changed 9 months ago by mikelward

source of offending message (sanitized version)

Changed 9 months ago by thomasb

I think the behaviour is OK because it's a message/rfc822 and there it might be helpful to see all the content of the rejected message.

Changed 7 months ago by alec

It's multipart/alternative, so I think we can live without that part ;)

Changed 4 months ago by alec

  • milestone changed from later to 0.2-beta

Changed 9 days ago by thomasb

Unfortunately the message structure provided by the IMAP server does not contain the message headers and therefore we cannot detect it to be multipart/alternative. The content-type we get of this message part is message/rfc822.

To fix this issue RoundCube needs to fetch the raw message part and parse it itself.

Note: See TracTickets for help on using tickets.