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.
Created attachment 80807 [details] MBOX: e-mail that shows the error
I don't understand. Please give method that you use to see error.
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.
Created attachment 89561 [details] Affected mail
Reported some time ago as bug 281530, claimed to be fixed (although it didn't work for me).
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
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.
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.