Bug 187989 - Plain text and HTML parts are shown below each other, if inline images are in the same "multipart/alternative" part
Summary: Plain text and HTML parts are shown below each other, if inline images are in...
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: mime (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 118708 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-03-24 11:25 UTC by Diederik van der Boor
Modified: 2009-07-31 12:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Diederik van der Boor 2009-03-24 11:25:18 UTC
Version:           onbekend (using 4.2.1 (KDE 4.2.1) "release 104", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler:          gcc
OS:                Linux (i686) release 2.6.25.20-0.1-default

I've received an e-mail which has the following parts:

* multipart/alternative
  - 1. text/plain
  - 2. text/html
  - 3. image/jpeg
  - 4. image/jpeg

This doesn't seam right to me, as you'd generally expect the following structure:
* multipart/related
  - 1. multipart/alternative.
    - 1.1. text/plain
    - 1.2. text/html
  - 2. image/jpeg
  - 3. image/jpeg

However, most other email clients seam to handle the broken structure quite well. Only KMail appears to display both the plain text version above the HTML version, which makes it look bad.
Comment 1 Diederik van der Boor 2009-04-03 14:12:42 UTC
Correction, the received structure appeared to be:

* multipart/alternative
  - 1. text/plain
  - 2 multipart/related
    - 2.1 text/html
    - 2.2 image/jpeg
    - 2.3 image/jpeg

(so there is multipart/alternative and multipart/related mixed up). In this case, KMail will show the plain text version above the HTML version.
Comment 2 Thomas McGuire 2009-07-27 00:35:53 UTC
SVN commit 1002770 by tmcguire:

Also support multipart/alternative with text/plain and multipart/related as children, instead
of the usual text/plain and text/html.

This fixes that the content of some Newsletters with images was rendered twice, bot the HTML and
the plain text part was shown.

BUG: 187989


 M  +7 -0      objecttreeparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1002770
Comment 3 Thomas McGuire 2009-07-27 00:43:57 UTC
*** Bug 118708 has been marked as a duplicate of this bug. ***
Comment 4 András Manţia 2009-07-28 20:11:09 UTC
SVN commit 1003741 by amantia:

Merge rev. 1002770: 
"Also support multipart/alternative with text/plain and multipart/related as children, instead
of the usual text/plain and text/html.

This fixes that the content of some Newsletters with images was rendered twice, bot the HTML and
the plain text part was shown.

BUG: 187989"


 M  +7 -0      objecttreeparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1003741
Comment 5 Thomas McGuire 2009-07-31 12:11:18 UTC
SVN commit 1005078 by tmcguire:

Backport r1002770 by tmcguire from trunk to the 4.3 branch:

Also support multipart/alternative with text/plain and multipart/related as children, instead
of the usual text/plain and text/html.

This fixes that the content of some Newsletters with images was rendered twice, bot the HTML and
the plain text part was shown.

CCBUG: 187989



 M  +7 -0      objecttreeparser.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1005078