Bug 62485 - Kmail's reeeeal slow (and crashing) interaction with IMAP
Summary: Kmail's reeeeal slow (and crashing) interaction with IMAP
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-11 10:37 UTC by Peter Losher
Modified: 2007-10-07 10:03 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Traceback for the crash on openSuSE 10.1 with KDE 3.5.7 (rel. 80.1) while accesing imapd over a slow connection (3.12 KB, text/plain)
2007-10-07 10:03 UTC, Holger Lehmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Losher 2003-08-11 10:37:53 UTC
Version:            (using KDE KDE 3.1.3)
Installed from:    FreeBSD Ports
Compiler:          gcc version 3.2.2 [FreeBSD] 20030205 (release) 
OS:          FreeBSD

Kmail has been consistently slow interacting with the IMAP server (uw-imapd-2002* w/ TLS/SSL)  Polling 30+ IMAP folders can take up to 10-15 minutes which makes using the system laborious at best (frequently accessing a message results is impossible when it's polling folders or gives a "Cannot write to INBOX" or "The process imap://<servername>/ died unexpectedly" error or in the extreme, crashing the kmail process)

Other IMAP clients (Mozilla, Pine) don't have this "lag" issue (or I would be suspecting uw-imapd.  Any ideas on how to speed up Kmail's interaction with imapd?
Comment 1 Lucius Chiaraviglio 2003-08-16 03:09:32 UTC
I haven't seen the extreme slowness, but I do get the error "The process for the 
imap://MailAndNews.com protocol died unexpectedly." frequently, and occasionally 
a crash (see bug #53000). 
 
Comment 2 Stephan Kulow 2003-09-21 12:00:09 UTC
Peter: do you use NFS $HOME? 
Please do a strace on kmail and see what it does. 
If it doesn't do strace action, compile with --enable-debug and attach gdb to it 
to see what it is. 
Comment 3 Till Adam 2003-11-14 12:56:58 UTC
Not reproducible and no further reaction from the reporter.
Comment 4 Holger Lehmann 2007-10-07 10:00:39 UTC
Please Reopen Bug:
Problem persist:
Accessing plenty of IMAP folders over a slow connection or accessing IMAP folders over a slow connection result in a crash.
Happens as a standalone or as a kpart running inside kontact.

The same error and behavior has been observered with Kmail versions from 3.1.x throughout 3.5.7 with downloaded and self-compiled versions (RPMs) on different SuSE Linux versions:
- SuSE 9.2
- SuSE 9.3
- openSuSE 10.1

Error occurs while accessing cyrus imapd from the following locations:
- from work: 100MBit, 1 hop
- from home: 6 MBit, 15-20 hops

System info at home:
KDE Version  KDE 3.5.7 "release 80.1" , openSUSE
Application  1.2.4 (enterprise 20070904.708012)
Operating System  Linux (i686) release 2.6.16.53-0.8-default
Compiler  Target: i586-suse-linux

System at work only differs in the running kernel version, I think it is 2.6.4.something and at work the RPMs are self compiled from downloaded SRPMs.

I observed, that increasing the number of subscribed imap folders exposes a similar/same bug at work, while decreasing the folders at work gives me a working application. We have approx. 70 imap folders (customer an project infos) at work, so I do not need all of them all the time, but it is pretty tedious to unsubscribe to unused folders before subscribing to new ones just to make sure kmail does not crash.

I will attach a tracback from home.
Comment 5 Holger Lehmann 2007-10-07 10:03:12 UTC
Created attachment 21765 [details]
Traceback for the crash on openSuSE 10.1 with KDE 3.5.7 (rel. 80.1) while accesing imapd over a slow connection

This is the traceback from home.
Once I click on any folder to see it's contents, kmail simply crashes.
I have enabled the option "only check opened folders" but that does not seem to
make any difference.