Bug 141029 - Disconnected IMAP stalls on large folders
Summary: Disconnected IMAP stalls on large folders
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: IMAP (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal with 20 votes (vote)
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-01 23:22 UTC by Simon Edwards
Modified: 2010-01-03 01:18 UTC (History)
2 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 Simon Edwards 2007-02-01 23:22:13 UTC
Version:            (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
OS:                Linux

When syncronising disconnected IMAP with the server, the whole process stalls.

I've placed a wireshark trace of the conversion between kmail and the bincimap server here:

    http://www.simonzone.com/software/kmail_bincimap_stall_bug.txt

Both sides of the conversion are in the same file, so it is a bit hard to see who is saying what, but if you look at line 8282:

    * 720 FETCH (FLAGS (\Seen95 LIST "" "kde-bugs"

You can see that bincimap was busy with a long reply, but kmail jumps in and issues command 95 before bincimap is ready. After that the syncronisation between the two just falls apart. I think that the big delay that I saw was the two programs waiting for each other.
Comment 1 Sheldon Hearn 2007-03-06 17:00:03 UTC
Confirmed.

I've just set up an old IMAP account in kmail-1.9.6 (kde-3.5.6, qt-3.3.8).  It contains these folders:

Archive
  2006-12
  2006-05
  2005-10
  2005-03

Sent
  2006-12
  2005-10

KMail is stuck in what appears to be an infinite loop.  The progress bar shows 25% most of the time. Every now and then it blips up to 95% for a split second as it moves on to the next folder. But it just cycles through them, never stopping.

So it spends most of its time saying:

2006-12 Retrieving message list
2006-05 Retrieving message list
2005-10 Retrieving message list
2005-03 Retrieving message list
Archive Retrieving message list
2006-12 Retrieving message list
2005-10 Retrieving message list
Sent Retrieving message list

I may have the order wrong.

My tcpdump looks the same.
Comment 2 Sheldon Hearn 2007-03-06 17:23:05 UTC
I forgot to mention that I'm running into this on Gentoo Linux, kernel 2.6.20 with glibc-2.5 and gcc-4.1.2, which I imagine is quite a different environment from that of the original poster.
Comment 3 Björn Ruberg 2010-01-03 01:18:38 UTC
Still an issue in recent kmail versions?