Bug 248466 - IMAP move operation slower the more messages are selected
Summary: IMAP move operation slower the more messages are selected
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-20 08:40 UTC by David Jander
Modified: 2015-04-12 09:47 UTC (History)
0 users

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 David Jander 2010-08-20 08:40:15 UTC
Version:           unspecified (using KDE 4.3.2) 
OS:                Linux

Moving several messages from one imap folder to another is already very slow in kmail, but the worst thing is, it gets proportionally slower the more messages are selected. It seems as if at first all individual move operations are queued in a list at once (that takes some time), and then this list is processed one message at a time, and somehow it takes longer to select the next operation out of this list, the longer this list is. Moving a few thousand messages on a local imap server (1Gb connection) can take hours!!

Reproducible: Didn't try

Steps to Reproduce:
Chose a IMAP folder with many messages (for example from a mailing list).
Create a second folder.
Select 100 messages from the first folder and move them to the second folder. Time the operation.
Select 1000 messages from the first folder and move them to the second folder. Time the operation.

Actual Results:  
The second operation (1000 messages) takes much more than 10 times the time of the first operation (100 messages).

Expected Results:  
The second operation (1000 messages) should take approximately 10 times the time to complete than the first move operation (100 messages).

1.- When clicking on the arrow button on the status bar to show the list of pending operations while moving a few thousand messages, kmail freezes a very long time to show the list (which is very long). It seems to me that this code is not scaleable and the whole job processing should be re-designed.

2.- IMAP supports copying multiple messages in one command. It seems utterly inefficient that kmail apparently does not use this feature.

3.- I remember doing the same sort of operations in kde-3.5 in the past and it didn't even be nearly as slow, although my computer was much slower back then.
Comment 1 David Jander 2010-08-20 08:42:18 UTC
>[...] 
> Reproducible: Didn't try

Yes I did of course (forgot to select this option).
Comment 2 Laurent Montel 2015-04-12 09:47:15 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.