I get visual notifications of new mail despite requesting no notifications

Bug #156292 reported by Fergal Daly
4
Affects Status Importance Assigned to Milestone
evolution (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs
notification-daemon (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: notification-daemon

In evolution, Edit->Preferences->Mail Preferences->New Mail Notification is set to "Do not notify me when new mail arrives"

Every time new mail arrives I get a popup thingy that goes away after a few seconds.

Looking further, I think it's notification-daemon doing this. I have no idea why this is running and I can't find a switch anywhere to turn it off - short of uninstalling it.

The popups should have something to tell me how to disable it, or a button to launch the prefs.

But really it should just respect the choice I made in the evolution prefs to have no notifications.

Revision history for this message
C de-Avillez (hggdh2) wrote :

Thank you for reporting this bug and helping make Ubuntu better.

Do you have mail-notification* installed? These are not evolution packages (or plugins), and mail-notification-evolution will generate the pop-ups as you describe. There is a good chance it is mail-notification-evolution that is causing your pain. On my system, the Evolution notification plugin is disabled, and I do not get any such pop-ups (and I do not have mail-notification* installed).

Notification-daemon is a generic notification daemon -- it is driven by other programs (that request a notification to be presented to the user). I am almost sure n-d is not the culprit here.

Changed in evolution:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Fergal Daly (fergal) wrote :

Yes I agree this is most likely not a bug in n-d, it just notifies what it's told (I the time of filing the bug, I had no idea what n-d was).

I don't have m-n-e

fergal@lap ~> dpkg -l mail-notification-evolution
No packages found matching mail-notification-evolution.

but even if I did, it shouldn't cause this - on a multi-user system, the presence of absence of packages should not override user prefs.

My guess is that when dbus notifications were added to evo, nobody thought to filter them based on the "notification" prefs.

Revision history for this message
C de-Avillez (hggdh2) wrote :

this may be the case. Strange that I do not have this issue though... but this is a personal laptop I use, so no other users.

Did you ever enable mail notification? What do you have for the gconf /apps/evolution/mail/notification entries?

Revision history for this message
Fergal Daly (fergal) wrote :

fergal@lap ~> gconftool-2 -R /apps/evolution/mail/notification
 notification = true
 blink-status-icon = true

but I have no idea how that got there, my prefs widget is definitely set to no notification. In fact, twiddling my settings has no impact on the output of that command. Is it possible to adjust those values through the GUI at all?

I have a full backup of my system before the upgrade and I can see that

~/.gconf/apps/evolution/mail/

does not have a notification directory. So my guess is that it was created by the new version of evolution when first run and these are the default settings.

How about your gconf?

Revision history for this message
Fergal Daly (fergal) wrote :

For the benefit of anyone else suffering from this

gconftool-2 -s /apps/evolution/mail/notification/notification -t bool false
gconftool-2 -s /apps/evolution/mail/notification/blink-status-icon -t bool false

does the trick, but that doesn't address the root cause.

Revision history for this message
C de-Avillez (hggdh2) wrote :

My gconf had both of the keys set to true when I checked them -- but I did not get new mail notification until I enabled the plugin.

I then disabled the plugin, and bounced Evo. The gconf keys were still set, and the plugin still disabled -- but I did not get any new mail notification anymore.

So, we still experience different behaviour between ourselves. What version of evo and Ubuntu are you running?

Revision history for this message
C de-Avillez (hggdh2) wrote :

I am also rejecting the notification-daemon "affects", since this really does not seem to be related to n-d.

Changed in notification-daemon:
status: New → Invalid
Revision history for this message
Fergal Daly (fergal) wrote :

I'm on 7.10 (evo 2.12). My previous install was whatever came before that and it didn't have those keys at all.

I think I see the problem. I also have the notification plugin enabled (I hadn't ever seen the plugin prefs before). So the problem here is really that there is no interaction between the plugin and the notification prefs.

Ideally the plugin would add another option to the notification section, otherwise there's no way for a user to know why their prefs are seemingly being ignored. It's certainly not good to have multiple locations for notification prefs.

Revision history for this message
C de-Avillez (hggdh2) wrote :

I will have a look as soon as possible on the plugin source, and see if there is need for an upstream bug. Of course, anyone else with time availble can do the same. Upstream researach can also help.

Right now I see this bug as having two options: goes to INVALID because it ends up as not-a-bug (the plugin was active), or indeed the code tries, and fails, to set the gconf entries above. I am keeping it open on the chance the code is wrong.

Revision history for this message
Simon Bridge (simonbridge) wrote :

Just for fun, I had the same thing - except it was persistent until clicked.
Checking, I found:

$ gconftool-2 -R /apps/evolution/mail/notification
 notification = true
 blink-status-icon = true

So I did:

$ gconftool-2 -s /apps/evolution/mail/notification/notification -t bool false
$ gconftool-2 -s /apps/evolution/mail/notification/blink-status-icon -t bool false

So now it reads:

$ gconftool-2 -R /apps/evolution/mail/notification
 notification = false
 blink-status-icon = false

I am getting e-mail notification, but it doesn't flash...
Running Ubuntu 7.10 + Evo 2.12.0

Removing the notification thing from the panel results in a popup with the message "you have received x mail" appearing under the main menu.

Revision history for this message
Fergal Daly (fergal) wrote :

Simon, you can also go to Edit->Plugins and disable the notification plugin in there (apologies if you knew this already, it's not clear from your post).

Revision history for this message
C de-Avillez (hggdh2) wrote :

An observation: per the code, if the gconf keys do not exist (which would be the case on installing Evo, or when enabling the plugin for the first time) they will be created when the first new email hits the inbox (and *only* for the inbox), and set to TRUE.

Revision history for this message
Fergal Daly (fergal) wrote :

That makes a some kind of sense - if your plugin has no prefs GUI then unless you default it to being on, nobody will ever use it.

Revision history for this message
Sini Ruohomaa (kataja) wrote :

Thank you, thank you for the two workarounds (gconftool magic and plugins), Fergal! I had no idea where the new feature was coming from and had no way to stop Evolution from shattering my focus randomly - I've been having to drop it offline while trying to work, and that makes a quick glance for new email take considerably longer. My brain's sensitive enough to movement that I can't leave browser windows on most newspaper sites left open on the desktop I'm working in (without adblock, that is); they actively bother me.

For the "updates to your Ubuntu available" -popup bubble there was a straightforward fix to poke at the icon and tell it to not pop up, and now we get along splendidly. The email icon, on the other hand, has no interface beyond "click to make this go away until the next mail arrives"; it blinks, pops up a bubble and *keeps blinking* if I try to ignore it. It's been royally stressful (I get kind of much mail, and prefer to choose for myself when to go into interrupt-handling mode).

I'd strongly recommend disabling the plugin by default until it both respects the user's notification settings and can be turned off from the notification tray directly. Given the existing ways of notifying for new mail, it's not important enough to warrant the disturbance to users who use Evolution for heavy-duty mail handling. For others, it should be a nice and useful tool once the preferences are ironed out a bit. (E.g. blink/no blink, blink x times then stop, blink x times then go away, popup/no popup would probably be nice modes to choose from.)

Revision history for this message
C de-Avillez (hggdh2) wrote :

@all: Evo 2.21.14/E-D-S 2.21.14, released today, seem to address the configuration of the mail-notification plugin. Can you verify this is indeed resolved? I will then close the bug. Thanks.

Revision history for this message
Fergal Daly (fergal) wrote :

Is there a .deb somewhere?

Revision history for this message
C de-Avillez (hggdh2) wrote :

Hi Fergal, sorry for the delay.

yes, for Hardy. You will have to set your apt sources.list to use the hardy repositories. You can also use 'prevu' to backport it to your version of Ubuntu, but it may have some issues on dependencies (and you will have to 'prevu' each one of them).

Revision history for this message
C de-Avillez (hggdh2) wrote :

marking as Fix released. Still to be seen if there is interest in backporting.

Changed in evolution:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.