Bug 138811

Summary: Remove duplicates deletes emails which are different but have same subject [dataloss]
Product: [Applications] kmail Reporter: Cyron <ruy1802>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: grave CC: eugen.plamadeala, j_kolberg11
Priority: NOR    
Version: 1.9.5   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Cyron 2006-12-14 17:35:09 UTC
Version:           1.9.5 (using KDE 3.5.5, Kubuntu (edgy) 4:3.5.5-0ubuntu3)
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.17-10-generic

After a crash cause another bug (already reported) in one folder all mails was twice listed. If i select those mails one of them contains the mail, the second one is empty, with no information.

I thought the remove duplicates function will test which mail is ok and delete the second. But it doesnt! The function only tested the headline and delete one of them. Nearly all of my mails are deleted!

The function should:
-Load the mails which are duplicated and test the mails if them contains data
-(Re)move the duplicated mails only to the recycle bin

Hope this bug is resolved in the near future, this must not happen to another user.
Comment 1 Cyron 2007-02-06 01:00:03 UTC
It's hard to reproduce, cause the data loss will only occur if there were a problems with inconsistency of the mail files. If not, this function will work as expected.

But I think it's very important that this function will check the consistency of the mails with it is going to delete permanently.
Comment 2 Thomas McGuire 2007-06-07 18:25:31 UTC
*** Bug 146230 has been marked as a duplicate of this bug. ***
Comment 3 Michael Pyne 2008-05-28 03:41:54 UTC
I think the button that you want is "Recreate Index" in the context menu for a folder (or similar option), which should remove the empty duplicate messages.

Renaming the summary to make the data loss more apparent.
Comment 4 Jonathan Kolberg 2011-05-08 13:01:47 UTC
Seems like this is still happening in KDEPIM 4.6 beta5
Comment 5 Laurent Montel 2015-04-12 09:49:31 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.