Bug 300086 - Kmail goes crazy after system suspend (online/offline modes)
Summary: Kmail goes crazy after system suspend (online/offline modes)
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: 4.8.2
Platform: Mageia RPMs Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 19:53 UTC by Michał Walenciak
Modified: 2017-01-07 22:48 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 Michał Walenciak 2012-05-15 19:53:16 UTC
After waking up from "suspend to ram", Kmail behaves weird - it keeps thinking it's in offline mode:
when I try to send email - it tells me, it's in offline mode and asks if I want to go to online. I choose online.
Even then - email is not being sent.
Then I try to force sending emails - it asks me again about going into online mode. Even then (after choosing online) it doesn't send emails.
It as far as i see doesn't receive emails.
Switching between online and offline mode from file menu does not help.
Turning Kmail off and on again does not help.
Reboot is required.

Reproducible: Always

Steps to Reproduce:
1. suspend to ram
2. wake up
3. try to send email via kmail - it wille keep asking about going online
Actual Results:  
sending/receving emails after suspending to ram is impossible

Expected Results:  
does not need explanation ;)
Comment 1 Maarten Vanraes 2012-06-03 09:23:00 UTC
i don't know if this is related to suspend or a weird standby, but yesterday, i got stuck in this offline mode.

neither restarting akonadictl nor restarting kmail(kontact) itself helps.

i did however keep receiving emails, even though i got the messages at almost every step that it's in offline mode.

Sending emails did not work. except when i made the systray available and resent emails via the systray.

KDE 4.8.2 here
Comment 2 Maarten Vanraes 2012-06-03 11:24:38 UTC
closing kontact, stopping akonadi and then logging out and back in, seemed to do the trick
Comment 3 Martin Bříza 2012-06-19 12:38:31 UTC
This bug is also reported in the Red Hat Bugzilla for Fedora 17 (KDE SC 4.8.2, akonadi 1.7.2) on https://bugzilla.redhat.com/show_bug.cgi?id=815047 .
Comment 4 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 298956

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 5 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 298956
(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 6 Denis Kurz 2016-09-24 17:56:02 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 7 Denis Kurz 2017-01-07 22:48:02 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.