Bug 251385 - kmail loses connection to courier-imap server
Summary: kmail loses connection to courier-imap server
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.5
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 00:00 UTC by Jeremy Johnson
Modified: 2015-04-12 10:08 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 Jeremy Johnson 2010-09-16 00:00:52 UTC
Version:           1.13.5 (using KDE 4.5.1) 
OS:                Linux

I was hoping this problem would be fixed in KDE-4.5.1.
I run a mail server, setup following Gentoo Wiki:
http://en.gentoo-wiki.com/wiki/Postfix,_Courier,_Squirrelmail_and_Spamassassin

I use kmail to connect to my courier-imap server because kmail allows our office staff to have multiple imap accounts on our server (which is important). Minimally, everyone in our office has at least 4 imap accounts: their own user account, a general office account, a fax account, and a spamtrap account.

Unfortunately, kmail tends to keep timing out random imap connections and is never able to re-establish the connection (though it says it's trying). The only sure-fire way to get a connection working again is to manually restart the imap server:

for f in /etc/init.d/courier-*; do $f restart; done

This will like fix the broken imap connection for one user, but break another connection for someone else. Sometimes the user can click on kmail->settings->configure->Accounts->choose-account->Modify->OK->Apply
and this will repair an imap connection. Sometimes it may be necessary to restart kmail. In any event, having to restart the courier-imap server is not a solution even for our SOHO environment.

Other email clients, squirrelmail, roundcube, claws-mail don't have this timeout problem, but neither do they support multiple imap connections.



Reproducible: Always

Steps to Reproduce:
Setup courier-imap server. Configure each user's kmail with multiple imap accounts on this server. Kmail always timesout on some random account for some random users. I can never have everybody's kmail working for everyone at once. Usually some imap account(s) for some user(s) timesout. The connection cannot be re-established without restarting imap server, which usually both fixes and breaks other connections. 



There is a long-standing bug regarding imap connections timeouts with laptops.
But all our computers are desktops running 24/7 which never suspend/hibernate.
In the bug report, it's stated that a new framework for KDE pim is being developed and that emphasis is on the new framework and so the old kmail problem may never be fixed. I'm not sure if my kmail is the old kmail or the new kmail. I was hoping that when I upgrade Gentoo to the new KDE-4.5.1 this issue with kmail would be fixed. Gentoo reports I'm running kde-base/kmail-4.4.6 and kmail->About  reports I'm running Version 1.13.5 using KDE development platform 4.5.1

Thanks.
Comment 1 Laurent Montel 2015-04-12 10:08:39 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.