Bug 281829

Summary: Akonadi does not close connections to IMAP servers when kmail is closed
Product: [Frameworks and Libraries] Akonadi Reporter: Médéric Boquien <mboquien>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Médéric Boquien 2011-09-11 21:32:44 UTC
Version:           unspecified (using KDE 4.7.1) 
OS:                Linux

Akonadi keeps the IMAP connections alive (akonadi_imap_resource) when closing kmail. This is a problem as it block downloading in POP from some email servers.

Reproducible: Always

Steps to Reproduce:
Take 2 computers. Computer #1 checks emails with IMAP. Computer #2 checks emails with POP. Start kmail on computer #1, check mail, quit kmail. Start kmail on computer #2 and check mail.

Actual Results:  
Checking mails on computer #2 fails with the following message:
Unable to login to the server pop.laposte.net.
Could not login to pop.laposte.net. The password may be wrong.

The server said: "[IN-USE] Unable to open maildrop"

Expected Results:  
Akonadi takes the email connection down on computer #1 to allow computer #2 to download emails.
Comment 1 Christophe Marin 2011-09-12 21:46:47 UTC
kmail settings / accounts / did you select the retrieval options and checked "switch offline on kmail shutdown" ?
Comment 2 Médéric Boquien 2011-09-13 07:03:48 UTC
I guess not. Shouldn't this option be activated by default though? Intuitively if no mail client is on i would not expect my mails to be checked?