Bug 367443 - Stop new mail notifications after closing KMail
Summary: Stop new mail notifications after closing KMail
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.14.10
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-17 17:55 UTC by Tristan Miller
Modified: 2016-08-23 19:11 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.3.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan Miller 2016-08-17 17:55:29 UTC
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
Comment 1 Laurent Montel 2016-08-23 06:19:21 UTC
So you need to stop resource when you close kmail
=> kmail->configure->account-> change setting in popup menu.

Regards
Comment 2 Tristan Miller 2016-08-23 14:50:11 UTC
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.)
Comment 3 Laurent Montel 2016-08-23 19:11:45 UTC
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