Bug 175775

Summary: "too many open files" in IMAP mode
Product: [Applications] kmail Reporter: Vadym Krevs <vkrevs>
Component: IMAPAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: holger.lehmann, jeremy, kollix, mboquien
Priority: NOR    
Version: 1.10.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Vadym Krevs 2008-11-21 16:25:55 UTC
Version:           1.10.3 (using 4.1.3 (KDE 4.1.3) "release 61.1", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler:          gcc
OS:                Linux (x86_64) release 2.6.25.18-0.2-default

Hi. Today I've attempted to configure Kmail from KDE 4.1.3 to point at my company's Exchange server using normal IMAP mode. The configuration went like a breeze, however any attempt to actually connect and download messages results in numerous error dialogs with "Too many open files" text. There is no way to close them and continue other than kill Kmail.
Comment 1 Holger Lehmann 2009-02-09 18:06:32 UTC
I can confirm this for kde4-kmail-4.2.0-86.9 (openSuSE 11.0) w/ the "KDE4 community maintained KDE 4.x / Qt 4.x packages (openSUSE_11.0_KDE4_Factory_Desktop)" repository subscribed.
Comment 2 Jeremy Sonander 2009-03-10 11:16:43 UTC
I confirm this for kmail 4.2.1 on Gentoo using a Communigate IMAP server.
You can workaround this if you use ulimit to increase the number of concurrently opened files. Unfortunately only root can do that, and you want to check your mail, not roots, so you have to mess about like this:

xhost <name of your computer>
su
<root password>
ulimit -n 100000
su <your name>
export DISPLAY=<name of your computer>
kmail
Comment 3 Martin Koller 2009-09-02 00:53:51 UTC

*** This bug has been marked as a duplicate of bug 160968 ***