[Bug 248466] New: IMAP move operation slower the more messages are selected

2010-08-20 Thread David Jander
https://bugs.kde.org/show_bug.cgi?id=248466

   Summary: IMAP move operation slower the more messages are
selected
   Product: kmail
   Version: unspecified
  Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
  Severity: normal
  Priority: NOR
 Component: IMAP
AssignedTo: kdepim-bugs@kde.org
ReportedBy: djan...@gmail.com


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.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 248466] IMAP move operation slower the more messages are selected

2010-08-20 Thread David Jander
https://bugs.kde.org/show_bug.cgi?id=248466





--- Comment #1 from David Jander djander gmail com  2010-08-20 08:42:18 ---
[...] 
 Reproducible: Didn't try

Yes I did of course (forgot to select this option).

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 131507] Changing between big maildirs with many unread folders is slow

2010-08-20 Thread David Jander
https://bugs.kde.org/show_bug.cgi?id=131507


David Jander djan...@gmail.com changed:

   What|Removed |Added

 CC||djan...@gmail.com




--- Comment #17 from David Jander djander gmail com  2010-08-20 09:30:59 ---
I can confirm this problem is still there in kde-4.3.2.
Opening an IMAP folder (local net) with 35000 messages where most of them are
unread in the Threaded date view mode takes 2 minutes reorganizing the
message list each time before I can scroll somewhere and actually use the
folder.
This bug has been with us for so long now, any chance this will be fixed one
day? It is one of the primary reasons kmail is mostly unusable with large
folders in thread mode, isn't this supposed to be bad enough for kmail
developers to really worry?
I realize this fix isn't trivial, but if QT is at fault, what about trying to
fix Qt or at least implement a work-around for this problem? IMHO, not using
threaded view in large mailing-lists is not very useful!
In the worst case, it Qt's tree widget is not scalable for such use-cases,
maybe KDE needs an alternative widget for tree-lists?
Come on, it has been 7 years now! Please start doing something!

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 206280] KMail recreates message list while processing of network operations (very slow IMAP)

2010-07-19 Thread David Jander
https://bugs.kde.org/show_bug.cgi?id=206280


David Jander djan...@gmail.com changed:

   What|Removed |Added

 CC||djan...@gmail.com




--- Comment #1 from David Jander djander gmail com  2010-07-19 11:46:02 ---
Yes, I can confirm this.
KMail has gotten horribly slow going from KDE-3.5.10 to 4.x. I work on IMAP
with many public folders, some of them with up to 45000 messages, and KMail is
unusably slow when working on those folders. It takes several minutes just to
display the contents of one such folder, and moving a few thousand e-mails to
another folder (which whould be a server-side action) is undoable. Kmail
consumes 100% CPU for several minutes, and then shows an error message
complaining about server timeout.
With KDE 3.5.10, it worked much faster.
Currently using KDE 4.3.2 on kubuntu 9.10.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 209208] Opening IMAP account throws many error messages

2009-10-20 Thread David Jander
https://bugs.kde.org/show_bug.cgi?id=209208





--- Comment #2 from David Jander djander gmail com  2009-10-20 09:52:42 ---
After more investigation, problem number 2 seems unrelated to problem number 1
(which was gone after rebuilding KMail (??)). Problem 2 (now declared unrelated
by me) still remains, so I opened a separate bug-report for it here:
https://bugs.kde.org/show_bug.cgi?id=210774

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 210774] New: Too many open files when accessing IMAP

2009-10-16 Thread David Jander
https://bugs.kde.org/show_bug.cgi?id=210774

   Summary: Too many open files when accessing IMAP
   Product: kmail
   Version: unspecified
  Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
  Severity: normal
  Priority: NOR
 Component: general
AssignedTo: kdepim-bugs@kde.org
ReportedBy: djan...@gmail.com


Version:(using KDE 4.3.2)
Compiler:  gcc (Ubuntu 4.4.1-4ubuntu7) 4.4.1 
OS:Linux
Installed from:Ubuntu Packages

When I configure an IMAP account that has many IMAP folders (1000 or more),
kmail starts scanning all folders, and eventually starts displaying a storm of
error messages complaining:
'Cannot open file XXX: Too many open files'.

The bug apparently is triggered by a call to KDE_fopen() in line 128 of the
file kmail/kmfoldermbox.cpp

For some reason a huge amount of control files is kept open (proportional to
the amount of IMAP folders) eventually hitting ulimit.

If I increase the hard- and soft limits of open files per process (originally
at 1024 on ubuntu), eventually kmail starts successfully, but I think kmail
should never keep all those files open at the same time. It seems like a
useless waste of resources, does not scale, and will cause problems (crashes)
for users with large IMAP accounts.

I selected severity:bug for this issue because it is not a crash in the
strictest sense of the word, but it has the same importance IMHO. Kmail is not
usable on such accounts if you are not allowed to increase your ulimit values.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 209208] New: Opening IMAP account throws many error messages

2009-10-02 Thread David Jander
https://bugs.kde.org/show_bug.cgi?id=209208

   Summary: Opening IMAP account throws many error messages
   Product: kmail
   Version: unspecified
  Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
  Severity: normal
  Priority: NOR
 Component: general
AssignedTo: kdepim-bugs@kde.org
ReportedBy: djan...@gmail.com


Version:(using KDE 4.3.1)
Compiler:  gcc (Ubuntu 4.4.1-4ubuntu4) 4.4.1 Packaged by ubuntu team
for ubuntu 9.10
OS:Linux
Installed from:Ubuntu Packages

OS/Version: (K)ubuntu karmic latest (1-oct-2009) alpha with KDE-4.3.1

When configuring an IMAP e-mail account in KMail, and opening one of the
account folders, several things go wrong, which are probably related, hence I
put them in one bug report:

1.- I get an error-message for every sub-folder saying:
 'Cannot open file
~/.kde/share/apps/kmail/imap/.286385175.directory/.XXX.directory/YYY:
No such file or directory'

If I check the mentioned directory from a terminal, before I click on OK in
the message box, I can verify the file exists and has read and write access.

2.- In my case the IMAP account contains a tree of folders and sub-folders.
There are probably more than 1000 directories. So after a long while holding
down the [Enter] key to click through all the OK buttons in the almost endless
storm of error messages, the error message text chages to:

'Cannot open file
~/.kde/share/apps/kmail/imap/.286385175.directory/.XXX.directory/YYY:
Too many open files'

And sometimes in between there is a shorter error message dialog saying:

'Error while creating file XXX: Too many open files'

Looking inside /proc/pid of kmail/fd/, there are indeed 1000 open
file-descriptors. Apparently this is the pre-configured maximum on my system,
but anyway, kmail should NEVER keep all those files open in the first place.

I cannot use KMail like this, and in fact I never made it through all the error
messages, to see what happens then. Every time I restart KMail, and repeating
the procedure, the directories previously created are removed again, and the
pain starts over!

Could this be a race-condition between two threads?

Additional information: The home directory (~) is on an NFS mounted drive, and
this has been working fine for years throughout the KDE-3.x series. Before
running KDE4 for the first time, I removed my .kde directory just in case.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 209208] Opening IMAP account throws many error messages

2009-10-02 Thread David Jander
https://bugs.kde.org/show_bug.cgi?id=209208





--- Comment #1 from David Jander djander gmail com  2009-10-02 14:26:13 ---
There is a bug-report on ubuntu lauchpad for this issue:

https://bugs.launchpad.net/ubuntu/+source/kdepim/+bug/427191

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs