Bug 321684 - kmail2 embedded mail can't be opened - kmail2 reports contains not a mail
Summary: kmail2 embedded mail can't be opened - kmail2 reports contains not a mail
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: 4.14.0
Platform: openSUSE Linux
: NOR grave
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-27 19:10 UTC by Thomas Arend
Modified: 2017-01-14 14:53 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
MBOX: e-mail that shows the error (7.52 KB, text/plain)
2013-06-27 19:11 UTC, Thomas Arend
Details
Affected mail (9.40 KB, application/mbox)
2014-11-12 18:04 UTC, Marc Schmitzer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Arend 2013-06-27 19:10:17 UTC
Some embedded text only mails a correctly displayed in the preview window. When trying to save of view the embedded mail kmail2 reports that it is not a mail. 

The mails are within a spam report of spamassassin.

When trying to same the mail the file size is 0.



Reproducible: Always

Steps to Reproduce:
1. Try to open a the mail in viewer.
2. Try to save the mail with save as.
3.
Actual Results:  
kmaile reports "contains no mail" or saves an empty file.

Expected Results:  
1. An embedded mail, which can be viewed in the preview in the preview window should be viewable in the viewer.
2. The filesize should be greater than 0.
Comment 1 Thomas Arend 2013-06-27 19:11:46 UTC
Created attachment 80807 [details]
MBOX: e-mail that shows the error
Comment 2 Laurent Montel 2013-06-28 09:38:02 UTC
I don't understand.
Please  give method that you use to see error.
Comment 3 Marc Schmitzer 2014-11-12 18:01:58 UTC
I think I'm hitting the same problem.

A little more detailed explanation: Spamassassin has a feature where it generates a report email for each detected spam mail, and attaches the original mail to the report mail.
Kmail displays the report mail just fine and indicates the attachment. Opening the attachment with "KMail View" gives a "The file does not contain a message" error. Saving the attachement results in a zero-byte file.
Looking at the source of the report message, the attached message is there. I'll attach an example.
Comment 4 Marc Schmitzer 2014-11-12 18:04:06 UTC
Created attachment 89561 [details]
Affected mail
Comment 5 Jonathan Marten 2014-11-12 19:07:27 UTC
Reported some time ago as bug 281530, claimed to be fixed (although it didn't work for me).
Comment 6 Laurent Montel 2014-11-13 08:30:11 UTC
Git commit d3869cc75c330c48ec13f8d7dd93b448be3812f9 by Montel Laurent.
Committed on 13/11/2014 at 08:29.
Pushed by mlaurent into branch 'KDE/4.14'.

Add debug for testing Bug 321684

M  +6    -0    kmail/kmcommands.cpp

http://commits.kde.org/kdepim/d3869cc75c330c48ec13f8d7dd93b448be3812f9
Comment 7 Marc Schmitzer 2015-02-01 18:44:56 UTC
I just built the KDE/4.14 branch of KMail to see what the debug prints above do. In my test, the "url" print in the KMOpenMsgCommand gives "/tmp/kde-marc/kmail2s30350.index.2/unnamed". The file exists but is empty.
Comment 8 Denis Kurz 2017-01-14 14:53:14 UTC
This bug has only been reported for very old, yet unsupported versions of KMail. In more recent versions, this seems to be fixed. I tested both attached mails, and the embedded messages were shown inside the containing message, all in the same message viewer window. Tested with 5.4.1.