Bug 318182

Summary: Multipart messages are displayed twice in KMail
Product: [Applications] kmail2 Reporter: Luca Beltrame <lbeltrame>
Component: miscAssignee: Sandro Knauß <sknauss>
Status: RESOLVED FIXED    
Severity: normal CC: grote
Priority: NOR    
Version: Git (master)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 4.10.3
Attachments: Example of a message from plasma-devel which shows the behavior
Raw message from the above screenshot
Another raw message which is mulitpart text+html
Only signed mail, that is not doubled

Description Luca Beltrame 2013-04-11 08:39:46 UTC
When displaying messages with multipart contents (for example, signed emails,  or mails with mixed text / html content), KMail displays the content of the message twice. 

It is worth noting that the message itself is correct, it is only the display that is affected.
Screenshots are attached.

This behavior started appearing after the changes for message signing / encryption landed in master.

Reproducible: Always

Steps to Reproduce:
1. Choose a multipart message in KMail
2. Open the message or use the preview under the message list

Actual Results:  
Message content is displayed twice (see screenshot).

Expected Results:  
Message is displayed once.

Master as of yesterday.
Comment 1 Luca Beltrame 2013-04-11 08:40:52 UTC
Created attachment 78789 [details]
Example of a message from plasma-devel which shows the behavior
Comment 2 Luca Beltrame 2013-04-11 08:41:45 UTC
Created attachment 78790 [details]
Raw message from the above screenshot
Comment 3 Torsten Grote 2013-04-11 08:54:59 UTC
Created attachment 78791 [details]
Another raw message which is mulitpart text+html
Comment 4 Sandro Knauß 2013-04-11 08:59:53 UTC
Created attachment 78792 [details]
Only signed mail, that is not doubled

openpgp/mime signed - not doubled
Comment 5 Sandro Knauß 2013-04-11 14:40:29 UTC
Git commit 37319d960c048bf397e7f7ae0a1564d5eb749482 by Sandro Knauß.
Committed on 11/04/2013 at 13:37.
Pushed by knauss into branch 'KDE/4.10'.

Fix Bug 318182 - Multipart messages are displayed twice in KMail

Instead of showing another time the first text block the actual text of
one node is taken
FIXED-IN: 4.10.3
REVIEW: 109963

M  +1    -1    messageviewer/objecttreeparser.cpp

http://commits.kde.org/kdepim/37319d960c048bf397e7f7ae0a1564d5eb749482