Bug 195300

Summary: Interval mail checking is attempted even in offline mode (DIMAP account)
Product: [Unmaintained] kmail Reporter: Brendon Higgins <brendon>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: christiandehne, jtamate
Priority: NOR    
Version: 1.11.4   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In: 4.9.4
Sentry Crash Report:

Description Brendon Higgins 2009-06-05 06:19:10 UTC
Version:            (using KDE 4.2.4)
OS:                Linux
Installed from:    Debian testing/unstable Packages

Hi,

I've noticed that if I put KMail into offline mode, then disconnect the ethernet cable from my laptop, the interval mail checking of KMail will (after some time) cause it to complain that it could not connect to my IMAP account (I'm using disconnected IMAP, FWIW). I don't know if KMail would continue to check my mail if it could connect, but considering that it is supposedly in "Offline mode", it shouldn't even try.

Peace,
Brendon
Comment 1 Jaime Torres 2009-06-05 10:40:36 UTC
It works as expected in kmail 1.11.90 (svn trunk r976506) (kde 4.2.87).
tcpdump does not shows any kmail activity in offline mode.
Comment 2 Christian Trippe 2009-06-05 11:15:28 UTC
I also notice this behaviour (sometimes) with KDE 4.3 beta 1. This sounds for me like a duplicate of bug 122499.
Comment 3 alex.goebel 2009-09-29 00:13:24 UTC
I still have that problem in 1.12.1 with kde 4.3.1.
This bug has indeed be carried over from KDE3 and it's really disappointing to see that this still does not work properly.

After wakeup from suspend (and switching to offline before that), the status line complains 'Connection to blah.mail.com broken' (still in offline!!). Then, going 'online' and checking mail results in some kio-imap daemon (I guess) getting totally stuck.
Only solution is to restart kmail.
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 300086, 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 300086, 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