[Kde-pim] kmail network-awareness patch

Martin Bednár serafean at gmail.com
Sun Aug 21 17:07:56 BST 2011


Le Dimanche 21 d'août 2011 15:31:45 Guy Maurel a écrit :
> Hello again!
> 
> On Sunday, August 21, 2011 09:42:19 AM Volker Krause wrote:
> > On Saturday 20 August 2011 19:01:34 Martin Bednár wrote:
> > > I believe kio_imap is dead : my patches apply to trunk (4.8), which
> > > contains an Akonadified Kmail. I have no idea how timeouts are
> > > handled in Akonadi, but I suppose that the
> > > Akonadi::AgentInstance::setIsOnline() function does just that
> > > 
> > > : sets the agent offline/online, IOW disconnect/reconnect to
> > > : remote host.> > 
> > > Could anyone who sees into it confirm, please?
> > 
> > yep, that's exactly how the IMAP agent is implemented.
> > 
> > Also note that most Akonadi agents are already connected to Solid and
> > thus follow the network status automatically. 

Did not know Akonadi used Solid internally, I thought it tried to not depend 
on KDE libs.

> > This reduces the need for
> > that feature in KMail considerably, it's still useful for manual
> > overwrite though, if the Solid status is wrong (e.g. connected to a
> > hotel Wifi that requires login on some website). Of course making the
> > status in KMail reflect the actual status by also using Solid makes a
> > lot of sense.
> 
> It is better!
> 
> It would be time to close the bug 77862, one of the most hatted one.

Actually, the Solid solution solves this problem only for the cases Solid 
knows about the connection change. If for instance, there is a route change 
(not sure this would actually disconnect, but you get the idea) and the IMAP 
connection gets broken (Solid doesn't know about it), then it is the 
connection  timeout default that matters. If I understood the OP of the bug 
correctly, then his problem is exactly this : there is no change in the system 
"connected" status, but his interface changed. I think this behaviour might be 
replicated by having two network devices on one PC, and switching the active 
one. AFAIK this can't be solved using Solid right now.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20110821/a10e0872/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list