Bug 305818

Summary: akonadi imap service starts at boot even though account settings are to shutdown when kmail is closed
Product: [Frameworks and Libraries] Akonadi Reporter: Craig Magina <Craig.Magina>
Component: IMAP resourceAssignee: Christian Mollekopf <chrigi_1>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: freekdekruijf, kdepim-bugs, michele.gaffuri, mollekopf, vkrause
Priority: NOR    
Version: 4.9   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Craig Magina 2012-08-26 13:03:48 UTC
I have my IMAP account setup to shutdown the connection when I quit kmail, yet the akonadi resource seems to continue to run and also starts at boot even though kmail is not running. I do have google calendar resources setup and the digital clock plasmoid is setup to display events, which would explain akonadi starting, but not the imap resource. This is an issue because it consumes 50-75% of my cpu between the akonadi feeder and mysqld.

Reproducible: Always

Steps to Reproduce:
1.Boot computer

1. Quit out of kmail/kontact
Actual Results:  
The akonadi imap feeder is still running.

Expected Results:  
The akonadi imap feeder should not be running.

An additional problem this causes is if I leave one computer running, but have kmail closed while using another computer for the same imap account I end up with duplicate e-mails due to filters moving the same e-mail from two separate computers to the same folder.
Comment 1 Freek de Kruijf 2012-10-30 10:00:56 UTC
I can confirm this in openSUSE 12.2. Quitting Kontact keeps the akonadi resource processes running. Also logging in in a KDE account immediately a prompt for the kdewallet password pops up before Kontact is started. The strange thing is that after starting Kontact again that password is asked for, also when sending an email message.
Comment 2 gaffu 2012-11-15 18:30:37 UTC
I can confirm this bug on Gentoo amd64 using kde 4.9.3.
Comment 3 Kevin Ottens 2013-11-16 07:28:16 UTC
The IMAP resource has a new maintainer, reassigning to him.
Comment 4 Christian Mollekopf 2013-11-24 19:47:58 UTC
This is a WONTFIX for now. On demand starting of agents/resources is currently not implemented and the feeder just indexes everything that is available (nothing specific to the imap resource).

We're also aware of the feeder requiring a lot of processing power and are working on fixing it.