I have a number of local and IMAP e-mail accounts configured in KMail2. As expected, when KMail2 is running, I get notifications about new mail in these folders. I like these notifications! However, what seems to be missing is any obvious way of temporarily disabling them. Back with KMail1, if I closed the mail client, I would stop getting new mail notifications. But with KMail2, closing the program doesn't disable mail checking. Akonadi continues to monitor local and remote IMAP folders and to notify me of new mail. In many situations these notifications are unwanted (say, if I'm using my computer to give a public presentation and don't want the audience to see all my incoming mail headers, or if I'm just concentrating on some work and don't want to be bothered with pop-ups for a while). I'm not sure if this is a problem with KMail or with Akonadi. Perhaps when KMail starts up and shuts down, it could also tell Akonadi to start and stop issuing mail notifications? Reproducible: Always
So you need to stop resource when you close kmail => kmail->configure->account-> change setting in popup menu. Regards
Thanks for the heads-up about the "Switch offline on KMail shutdown" checkbox in the account settings. However, it seems to exist only for remote account types such as POP3 and IMAP. Since my issue also concerns local accounts such as mbox and maildir folders, I hope it's OK to reopen this report. (Consider that many users get mail delivered to local accounts via programs like fetchmail, local cron jobs, etc.)
Git commit 749689c1b13dd992cdc2f06409f16dde3aa73b7e by Montel Laurent. Committed on 23/08/2016 at 19:10. Pushed by mlaurent into branch 'Applications/16.08'. Fix Bug 367443 - Stop new mail notifications after closing KMail FIXED-IN: 5.3.1 Allow to shutdown maildir/mbox too as it can be use by external apps. M +1 -1 kmail/src/configuredialog/configureaccountpage.cpp http://commits.kde.org/kdepim/749689c1b13dd992cdc2f06409f16dde3aa73b7e