Comment 27 for bug 850229

Revision history for this message
Magnetizer (magnetizer) wrote :

The icon in the launcher does not show the right number of unread emails, too.

What I found dis this:

Precondition: There are no unread emails. The icon does not show a number at all. Everything is ok.

1) Some (say 3) emails arrive. The icon shows the correct number of unread emails (3).
2) I read 2 of them and let the last email being unread. The icon still shows that there are 3 unread emails which is wrong.
3a) When I read the last unread email the icon does not show a number at all. Everything is ok again.
3b) When another email arrives the icon shows the correct number of unread emails (2).
3c) When I read all emails but decide to set one email to the status "unread" the icon shows no number at all which is wrong.

It seems to me that there are 2 triggers to update the number of unread emails:

* new email arrives
* last unread email is read

and it misses the trigger:

* some email is read or set to unread

In addition it does not really count the number of email having status "unread" but it only considers e-mails since the last update.

I can reproduce the last fact quite easily because I use the "unread" status of an e-mail not to mean that I did not read it but as a reminder that I should take action upon it at some time. So emails do not get the "read" status when I read them but only when I set them "unread" manually. This means I have 28 "unread" emails right now but the icon does not show a number as I "read" the last emails that arrived.