Bug 126793 - deleting many messages (IMAP) - very, very slow
Summary: deleting many messages (IMAP) - very, very slow
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: 1.9.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-05 13:53 UTC by Marcin Kasperski
Modified: 2015-04-12 10:19 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 Marcin Kasperski 2006-05-05 13:53:24 UTC
Version:           1.9.1 (using KDE 3.5.2, Debian Package 4:3.5.2-2+b1 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.8

Kmail never performed massive message deletion very fast, but after upgrading to kmail 1.9.1 (not sure from which version, whatever was in debian testing a few months ago) I found that it is very slow even comparing to older version.

Use case: create some IMAP folder, put - say - 1000 messages there, mark them all, ask kmail to delete them.

Expected: after - say - 15 seconds messages are deleted. The display presented by kmail does not matter, probably showing waiting cursor for small amount of deleted messages and some kind of progress window in case of greater amount would do.

Current state: kmail clearly deletes messages one by one, refreshing the display after removing every individual message (on the message list one message disappears the rest go up one step, etc). The whole process is enormously slow, can take up to a hour.

Note: my IMAP server is in local net, works very fast. Also, I use pretty fast Linux workstation well equipped with RAM and disk space.
Comment 1 Marcin Kasperski 2006-05-05 13:53:58 UTC
(real-life use case for this scenario is of course cleaning up Spam folder...)
Comment 2 Magnus Holmgren 2006-05-05 14:25:08 UTC
Is this a duplicate of bug #87857, even though that one doesn't specifically concern IMAP?
Comment 3 Marcin Kasperski 2006-05-05 14:34:09 UTC
I am not sure. The problem describe in bug 87857 was there for a longer time, adds to the picture and should probably be solved to solve this one, but this bug is also about the fact that kmail 1.9.1 (KDE 3.5.2) is far slower than its predecessors - while the bug you mention was filed against KDE 3.3.0.

But of course the general problem is the same in both cases: do SOMETHING to QUICKLY remove - say - 1500 messages.
Comment 4 Thiago Macieira 2006-05-14 10:45:27 UTC
Online or disconnected IMAP?
Comment 5 Marcin Kasperski 2006-05-14 20:22:43 UTC
In my case online.
Comment 6 Marcin Kasperski 2006-05-14 20:25:27 UTC
(but in the very fast, local network)
Comment 7 Marcin Kasperski 2007-02-05 14:37:18 UTC
Maybe one extra note: from the same workstation, using the same account on the same IMAP server, evolution performs the same operation in a few seconds.
Comment 8 Björn Ruberg 2009-12-25 23:57:27 UTC
Is this still a problem in a recent kmail version?
Comment 9 Marcin Kasperski 2009-12-28 10:14:02 UTC
I am not using kmail anymore, so can't comment.
Comment 10 Jan Binder 2009-12-28 10:53:20 UTC
Still rather slow in kmail 1.12.4, deletion speed is about 10-50 mails per second over 100MBit network.
The remote server is dovecot 1.2.9.
Deletion stops after ca 2000 mails (I tried to delete about 5000 to 10000 mails from LKML multiple times).
Comment 11 Björn Ruberg 2009-12-29 23:40:00 UTC
*** Bug 135717 has been marked as a duplicate of this bug. ***
Comment 12 Sébastien LOSS 2010-02-27 15:25:31 UTC
kmail 1.13.0 and the problem is worth : when i delete a lot of mails, kmail move each mail (one by one) in trash folder (I prefer the suppress flag method like evolution does because is much appropriated for imap account) this is very very slow and often irresponsive. Ok is slow ... I'm waiting.... next I empty my trash.  But later after do some mail operation :  I delete one mail -> annd kmail reread the trash folder -> kmail found some hundred deleted mails (~700 on 1000 deleted and purged .....) 


Evolution is faster but it is the buggiest application I never seen (try to rename a folder containing 2000 mails, send a empty message without email adress and without subjet is possible....Display an HTML message with image is very slow. It is impossible to have more than 2GB pop folder on 32bit system with ext4 file system yet in 2010)
Kmail is better but crash often (try to deleted quickly some mails with preview windows activated. While this do some extra operations crash often kamil). And kmail is too slow on QuadCore 3Ghz 12GB RAM.... seriously...

Conclusion : i use linux more ten years. Linux systems are very efective with network tasks. Today linux has very sophisticated desktop programs. BUT manage large email box in POP or IMAP (not very new technology .....) is painful task.
Comment 13 Laurent Montel 2015-04-12 10:19:58 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.