Bug 284192

Summary: KMail-controlled interval e-mail checking (or: offlining IMAP sources after use)
Product: [Applications] kmail2 Reporter: Gard Spreemann <gspr>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: wishlist    
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Gard Spreemann 2011-10-16 15:30:45 UTC
Version:           4.7 (using KDE 4.7.1) 
OS:                Linux

If I understand Akonadi and its relationship with KMail correctly, e-mail sources (say IMAP accounts) are now managed by Akonadi. Interval checking is a property of each such source. When I start KDE without starting KMail, the Akonadi e-mail sources are in the offine state. When I start KMail, they go online. When I close KMail, the e-mail sources remain online and interval checking continues. This is not desirable for me. Indeed, I think most users would like their IMAP connections to close when they close their e-mail program (or rather, when they close the last program using the IMAP accounts as sources). This is probably even more true on laptops, where keeping the connection open is a needless waste of battery.

Would it therefore not be better if either:
1) KMail controls the interval checking instead of the IMAP sources themselves.
2) When the last program using an IMAP Akonadi resource, that resource goes offline.

Reproducible: Always

Steps to Reproduce:
Start KMail. Check e-mail. Close KMail.

Actual Results:  
All IMAP connections remain, and interval e-mail checking (if enabled) continues indefinitely (or until the user uses Akonadi console to explicitly disconnect the IMAP sources).

Expected Results:  
IMAP connections should go offline when no program is using them.
Comment 1 Gard Spreemann 2011-10-28 15:56:02 UTC
I am sorry, I did not see that this option already exists under "retrieval options" for the IMAP account in KMail.