Bug 318850 - Akonadi disables IMAP resources when network fails and never tries again
Summary: Akonadi disables IMAP resources when network fails and never tries again
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: IMAP resource (show other bugs)
Version: 1.9.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Christian Mollekopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-25 13:23 UTC by korgens
Modified: 2015-03-18 16:20 UTC (History)
4 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 korgens 2013-04-25 13:23:07 UTC
I have a few IMAP resources configured in Akonadi. They are scheduled for 5 minutes polling of the IMAP server. But every time I leave the computer on for a few hours or days, half of the IMAP resources become marked as "unable to start" by Akonadi. Usually they are from not so good server that sometimes momentarily refuses connections because of Internet routing problems.

It seems that Akonadi never tries again when an IMAP resource is marked as "unable to start". In my opinion, it should always try again (every X minutes), unless there was some option telling it otherwise.

The result is that Kmail is almost always showing red (offline) folders for half of my IMAP accounts and I get no new emails.

I'm running Archlinux:
3.8.4-1-ARCH #1 SMP PREEMPT Wed Mar 20 22:10:25 CET 2013 x86_64 GNU/Linux

Akonadi version:  1.9.1-3,  x86_64




Reproducible: Always

Steps to Reproduce:
1. Create IMAP resources that point to a remote IMAP server.
2. Let Akonadi poll for new emails every 5 minutes
3. Let Akonadi fetch some emails from the IMAP resources
4. Shutdown the IMAP server or make it inaccessible by the Internet for a while
5. Eventually Akonadi will mark some (or all) of the resources "unable to start"
6. Restore the remote IMAP servers
7. Akonadi never tries them again
Actual Results:  
Akonadi marks the IMAP resources "unable to start" and never tries to connect to them again

Expected Results:  
Akonadi would mark the resources "unavailable", but keep trying to connect to them at every configured time interval. When the resources become visible again, Akonadi will connect to them, as it does the first time, on initializaion.

The only way to restore service is to:
1. Close Kmail and everything else that might be using Akonadi
2. Launch Akonadi system tray applet
3. Stop Akonadi service
4. Wait for it to happen
5. Start Akonadi Service
6. Wait for it to happen
7. Launch Kmail and access all IMAP resources normally
Comment 1 Kevin Ottens 2013-11-16 07:32:22 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 2 Christian Mollekopf 2013-12-03 17:36:18 UTC
Please reopen if this still applies to >=4.11.3, I think it's fixed.
Comment 3 Aldoo 2015-03-18 16:20:47 UTC
I am still seeing this very often. (akonadi 1.12.91-0ubuntu in KDE 4.14.1)
Can't we reopen?