Bug 298956 - Reactivate akonadi resouces with offline status
Summary: Reactivate akonadi resouces with offline status
Status: RESOLVED UNMAINTAINED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR minor
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-28 04:15 UTC by Matthias
Modified: 2017-01-07 22:10 UTC (History)
6 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 Matthias 2012-04-28 04:15:11 UTC
From time to time all my IMAP ressources go from ONLINE to OFFLINE. After that nothing more happens, i need to start the Akonadi Console and switch every single IMAP ressource to ONLINE again.

Is there no automatic way for that? Every other mail client does this without that step :-(

Thanks

Reproducible: Always
Comment 1 Simon Lodal 2012-06-23 11:39:00 UTC
I find that this happens when I move my laptop between dock and "a bunch of loose cables", where it loses network connectivity intermittently.

http://userbase.kde.org/Akonadi_4.4/Troubleshooting#IMAP_Resource_always_claims_to_be_offline says I need NetworkManager. If this is really true then KMail is permanently dead for me. I actually have NetworkManager running, but it is not managing anything since my IP is configured statically in /etc/network/interfaces. 'qdbus --system org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager.state' returns '70'.

I do not even know how to switch the IMAP resources back to online (where is the info on doing that?).

The Akonadi settings just shows the IMAP resource as offline, where is the blindingly obvious "Set to online" button?

Or why does the Akonadi IMAP resource not react when changing offline/online status inside KMail?

Very confusing, and above all, I just can not get it to work.

Kubuntu-12.04
Comment 2 András Manţia 2012-11-25 15:34:59 UTC
Git commit 75a744dd473e57285e417456a2295400b95f9ac2 by Andras Mantia.
Committed on 25/11/2012 at 16:34.
Pushed by amantia into branch 'master'.

Honour the online/offline setting requested by a client application in every case.
Previously it could happen that the resources were set to offline mode, but due to an event,
like resume from suspend, or network reconnect, the resource went online.
This had bad side-effects, like downloading mails while KMail was in offline mode.

Yes, it is a bug, that was there even in KMail1 times. :)
I CC to other bugs about offline mode, although I'm not confident it fixes those problems.
Feel free to report success/failure for those cases.

FIXED-IN: 4.10
Related: bug 195300, bug 300086

M  +14   -5    akonadi/agentbase.cpp
M  +1    -0    akonadi/agentbase.h
M  +1    -0    akonadi/agentbase_p.h

http://commits.kde.org/kdepimlibs/75a744dd473e57285e417456a2295400b95f9ac2
Comment 3 András Manţia 2012-11-25 15:38:27 UTC
Git commit 5a3856c2e51f4b11ec374b3ad4214ae008e1be5e by Andras Mantia.
Committed on 25/11/2012 at 16:38.
Pushed by amantia into branch 'KDE/4.9'.

Honour the online/offline setting requested by a client application in every case.
Previously it could happen that the resources were set to offline mode, but due to an event,
like resume from suspend, or network reconnect, the resource went online.
This had bad side-effects, like downloading mails while KMail was in offline mode.

Yes, it is a bug, that was there even in KMail1 times. :)
I CC to other bugs about offline mode, although I'm not confident it fixes those problems.
Feel free to report success/failure for those cases.

FIXED-IN: 4.9.4
Related: bug 195300, bug 300086
(cherry picked from commit 75a744dd473e57285e417456a2295400b95f9ac2)

Conflicts:
	akonadi/agentbase.cpp

M  +16   -6    akonadi/agentbase.cpp
M  +1    -0    akonadi/agentbase.h
M  +1    -0    akonadi/agentbase_p.h

http://commits.kde.org/kdepimlibs/5a3856c2e51f4b11ec374b3ad4214ae008e1be5e
Comment 4 Rafael Leal 2013-05-14 07:15:26 UTC
This occasionally happens to me when I start the computer. IMAP akonadi resources fail to go online, and stay offline until I manually restart the akonadi server. The "go online" link in kmail doesn't do anything.

This is a new behaviour in 4.10.

I'm using OpenSUSE 12.3.
Comment 5 Andrey 2013-11-12 14:52:46 UTC
I can confirm this bug. This alway happens with me. I can provide necessary info. Just tell, what I need check.

Gentoo Linux @ amd64
KDE 4.11.3
Comment 6 Xing 2013-11-14 21:36:13 UTC
My problem is that the IMAP mails in KMail2 will go offline automatically and I cannot find a way to let it go back to online automatically. KMail does show that "xxx is in offline mode, click here to go online" when I click an IMAP folder and "click here" does work. However, it's just annoying and I cannot trust the number of unread mails show in the system tray at all. Is there any setting that allows KMail or akonadi trying to be back online automatically ?

Platform: Opensuse 12.3, KDE 4.10.5
Comment 7 Stephan Diestelhorst 2014-03-07 17:06:08 UTC
See also #298956, which was closed by Christian.  I asked to reopne, becuase it is still an issue for me on 4.12.2.
Comment 8 Stephan Diestelhorst 2014-03-07 17:07:16 UTC
See also bug 298956, which was closed by Christian.  I asked to reopne, becuase
it is still an issue for me on 4.12.2.
Comment 9 Stephan Diestelhorst 2014-03-07 17:08:03 UTC
... I meant Bug 320662 .... sorry for the spam.
Comment 10 Denis Kurz 2016-09-24 20:44:27 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 11 Denis Kurz 2017-01-07 22:10:07 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.