Bug 271660 - "Remove duplicate Mails" doesn't work
Summary: "Remove duplicate Mails" doesn't work
Status: VERIFIED INTENTIONAL
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 2.0.95
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-25 04:13 UTC by terry
Modified: 2012-01-17 03:45 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description terry 2011-04-25 04:13:54 UTC
Version:           2.0.95 (using KDE 4.6.2) 
OS:                Linux

when I choose a fold and click "remove duplicate Mails" in fold menu, kmail allocates a lot of memory, but duplicate mails dont' be removed.

I have 4000+ mails about 1.5G...

Reproducible: Always
Comment 1 Laurent Montel 2011-07-04 16:46:05 UTC
Works fine here.
Reopen it with new package if you still have this bug
Comment 2 terry 2011-07-24 05:38:58 UTC
I don't know how can you estimate which those mails have duplicate.

In my mailbox , there are some mails which was check out from my online mailbox,  these mails have completely the content, but "Remove Duplicate mails" doesn't work on this.

In akonadi console I enable the debuger and execute the function in kmail, i can  get a lot of output from the debuger window, as follow:

==============
* 2624 2621 (NAME "XXXX" MIMETYPE (message/rfc822 inode/directory) REMOTEID "HaieruBiC" REMOTEREVISION "1311480562000" RESOURCE "akonadi_maildir_resource_10" CACHEPOLICY (INHERIT true INTERVAL -1 CACHETIMEOUT 1 SYNCONDEMAND true LOCALPARTS (ENVELOPE)) ANCESTORS ((2621 "/home/dongq/.local/share/local-mail") (0 "")) ENTITYDISPLAY "(\"\" \"mail-folder-sent\" \"\" ())") 
24862 OK List completed 
24863 SELECT SILENT 2624 
24863 OK Completed 
24864 FETCH 1:* EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
* 574391 FETCH (UID 574391 REV 2 REMOTEID "{fffcca5c-3ea7-4a95-a271-ab7725d09f0a}" MIMETYPE "message/rfc822" COLLECTIONID 2624 SIZE 6453 DATETIME "24-Jul-2011 05:06:44 +0000" FLAGS (\SEEN)) 
* 574390 FETCH (UID 574390 REV 2 REMOTEID "{fffb0d3b-461f-403d-a51b-cd181535219e}" MIMETYPE "message/rfc822" COLLECTIONID 2624 SIZE 578693 DATETIME "24-Jul-2011 05:06:44 +0000" FLAGS (\SEEN)) 

.....

* 565863 FETCH (UID 565863 REV 1 REMOTEID "{00021370-b4ac-425f-85c6-fbf799dac72d}" MIMETYPE "message/rfc822" COLLECTIONID 2624 SIZE 30425 DATETIME "24-Jul-2011 05:06:44 +0000" FLAGS (\SEEN)) 
24864 OK FETCH completed 
24865 UID FETCH 565863 CACHEONLY ANCESTORS INF EXTERNALPAYLOAD (UID REMOTEID REMOTEREVISION COLLECTIONID FLAGS SIZE DATETIME) 
* 565863 FETCH (UID 565863 REV 1 REMOTEID "{00021370-b4ac-425f-85c6-fbf799dac72d}" MIMETYPE "message/rfc822" COLLECTIONID 2624 SIZE 30425 DATETIME "24-Jul-2011 05:06:44 +0000" FLAGS (\SEEN) ANCESTORS ((2624 "HaieruBiC") (2621 "/home/dongq/.local/share/local-mail") (0 ""))) 
24865 OK UID FETCH completed 
24866 UID STORE 565863 NOREV (REMOTEID "{00021370-b4ac-425f-85c6-fbf799dac72d}" PLD:HEAD[1] {1746} 
+ Ready for literal data (expecting 1746 bytes) 
+ Ready for literal data (expecting 592 bytes) 
+ Ready for literal data (expecting 30425 bytes) 
* 565863 FETCH (REV 2) 
24866 OK DATETIME "24-Jul-2011 05:22:13 +0000" STORE completed 

....


NotificationManager::notify ( Item (568920, {5b0e276d-982c-438f-bdae-28caa2ccd6c5}) in collection 2624 modified parts (PLD:HEAD, PLD:RFC822) )

========================================

In the process, akonadi and kmail almost exhaust all memory and swap about 4.6G,  After a long time, everything seem like going to the end, but the duplicated mail still in there.
Comment 3 piedro 2011-10-18 09:15:31 UTC
after upgrading to KDE 4.7.2 introducing kmail2 I have no effect at all when pressing "remove duplicates" ...
Comment 4 Nino 2011-12-02 09:08:21 UTC
Confirming with 4.7.2/openSUSE 12.1: high background activity (kontact, akonadi, mysql,... but no visible effect, duplicate messages seem to remain untouched in the folder. 

So please REOPEN this bug :-)
Comment 5 Nino 2011-12-02 09:49:22 UTC
> Confirming with 4.7.2/openSUSE 12.1...

but see Bug#288040
Comment 6 avlas 2012-01-17 03:45:43 UTC
I can confirm this bug in kde 4.8 rc2 (kubuntu 11.10)