Bug 345822

Summary: Mail gets corrupted using IMAP/Kolab resource
Product: [Frameworks and Libraries] Akonadi Reporter: András Manţia <amantia>
Component: Kolab ResourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs, simonandric5
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.14.7
Attachments: How the message looks on server
How the message looks in KMail

Description András Manţia 2015-04-03 06:55:16 UTC
Created attachment 91868 [details]
How the message looks on server

A mail from a certain mailing list is always shown as corrupted in KMail, because the To field is somehow lost. I'm not sure if this is IMAP specific, though, but I had no time to debug inside the code.
Attached is the email as downloaded from Roundcube (good.eml) and from KMail (bad.mbox).
The problem is the following:
- in good.eml, there is a line To: undisclosed-recipients:;
- in bad.mbox this became: To

Which messes up header and mail parsing.
If you open good.eml in KMail all is fine, so the real problem is that the "undisclosed-recipients:;" got lost at some place (message reassembly after download? ).
Comment 1 András Manţia 2015-04-03 06:55:36 UTC
Created attachment 91869 [details]
How the message looks in KMail
Comment 2 Laurent Montel 2015-04-03 12:05:48 UTC
Git commit a1eb0ff976ce4d9bf426e30b547b637732399423 by Montel Laurent.
Committed on 03/04/2015 at 11:35.
Pushed by mlaurent into branch 'KDE/4.14'.

Fix store/load url.

Fix bug Bug 339195 - regression: bogofilter fails to manipulate message headers
Related: bug 339195
FIXED-IN: 4.14.7

M  +34   -0    mailcommon/filter/autotests/filteractionpipethroughtest.cpp
M  +1    -0    mailcommon/filter/autotests/filteractionpipethroughtest.h
M  +34   -0    mailcommon/filter/autotests/filteractionwithurltest.cpp
M  +3    -0    mailcommon/filter/autotests/filteractionwithurltest.h
M  +6    -4    mailcommon/filter/filteractions/filteractionwithurl.cpp

http://commits.kde.org/kdepim/a1eb0ff976ce4d9bf426e30b547b637732399423