Bug 283033 - New mail notification sound does not always trigger on new mail arrival.
Summary: New mail notification sound does not always trigger on new mail arrival.
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 4.7
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 290158 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-09-29 13:31 UTC by lnxusr
Modified: 2013-06-24 05:35 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.11


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lnxusr 2011-09-29 13:31:05 UTC
Version:           4.7
OS:                Linux

I have an IMAP server that stores all my email and have Kmail set to check for new mail every five minutes.  When new mail is on the sever, it shows up in the message list, but the notification sound isn't triggered.  Every now and then, seemingly randomly, it will trigger the sound, but usually nothing happens.

Reproducible: Sometimes

Steps to Reproduce:
Run Kmail with a notification sound set.

Actual Results:  
Sometimes notification is triggered, sometimes not.

Expected Results:  
Notification triggered each time there is new mail after checking.

OS: Linux (i686) release 2.6.38-11-generic-pae
Compiler: gcc
Comment 1 Laurent Montel 2011-09-29 14:08:39 UTC
I improved it in 4.8 but not easy to fix all pb with notification.
Comment 2 lnxusr 2011-09-29 18:26:00 UTC
(In reply to comment #1)
> I improved it in 4.8 but not easy to fix all pb with notification.

Not sure what pb is, but how can it not be easy to fix?  Checking mail is a routine/function/class/whatever the buzzword for a function is this year, is it not?  Do you not have a function that loops through all accounts flagged for periodic mail checking?  If any of those accounts have new mail, set a flag stating that there is new mail.  When the checking mail function is done, check that flag.  If it indicates there is new mail, trigger the notification, otherwise don't trigger the notification.
Comment 3 Laurent Montel 2011-09-30 08:03:30 UTC
Ok you didn't know code :)
I doesn't look at email which come from account but detect when we add new email in folder.
so we can have email which come from when we copy/move email.
so not easy to know if it's new emails or moved emails.
So it's for that it's not easy to fix it.
Comment 4 lnxusr 2011-10-01 01:35:43 UTC
(In reply to comment #3)
> Ok you didn't know code :)

No, I don't know the code for KMail.  Last time I looked at it was way back in the early days of KDE 4.  I was going to try to reimplement a feature from KMail 3.x series that was missing.

> I doesn't look at email which come from account but detect when we add new
> email in folder.
> so we can have email which come from when we copy/move email.
> so not easy to know if it's new emails or moved emails.
> So it's for that it's not easy to fix it.

To me, that doesn't seem to be the most efficient way to handle a new mail notifications.  If I'm moving an email from one folder to another, that's not new mail and I don't need a new mail notification event to trigger.  The only time a new mail notification should be triggered is when new mail has arrived.  That's why it's called a NEW MAIL notification.
Comment 5 lnxusr 2011-10-19 20:41:25 UTC
Since upgrading to Kubuntu 11.10 (KMail 4.7.2) I haven't noticed it not notifying me when new mail comes in.  My laptop is usually close by me most of the day.  I hear the notification much more frequently than before, and haven't noticed any new mail without being notified.
Comment 6 Marco Solieri 2013-01-15 16:42:30 UTC
I confirm the bug with KDE 4.8.4 and Kmail 1.13.7 on Debian amd64. I have one IMAP account in connected mode, with filtering on Sieve only. No "new mail" is notified, except for the currently selected directory. None of the notifications I set up is executed: no beep, no sound, no message, no command execution.

I think it's an important feature for an email client and I hope this bug will be considered as so. I would be happy to provide any other additional useful information to help the fix.
Comment 7 Jekyll Wu 2013-01-15 17:44:44 UTC
*** Bug 290158 has been marked as a duplicate of this bug. ***
Comment 8 Allen Winter 2013-01-15 19:32:01 UTC
Marco, sorry but we no longer support kmail1.

does this bug still affect other folks using KMail2 version 4.9 and above?
Comment 9 Neil Skrypuch 2013-01-15 23:41:25 UTC
I currently see this with Kmail 4.9 (+ KDE 4.9). My mail is configured as IMAP (with IMAP IDLE support) and it has never notified me about new mail, despite "Detailed new mail notification" and Notification -> Kmail -> New Mail Arrived -> Show a message in a popup being enabled.
Comment 10 Laurent Montel 2013-06-24 05:35:43 UTC
In 4.11 I rewrote notification.
It's an agent, and I fixed a lot of bugs about it.
And this bug is fixed for me.
Please test 4.11 and reopen it if necessary