After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 577542 - Incorrect unread count displayed
Incorrect unread count displayed
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.30.x (obsolete)
Other All
: Normal major
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
: 582494 586253 588448 617659 (view as bug list)
Depends on:
Blocks: 543389
 
 
Reported: 2009-03-31 22:14 UTC by Sam Morris
Modified: 2014-09-02 16:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sam Morris 2009-03-31 22:14:51 UTC
Please describe the problem:
Since upgrading to 2.24, evolution has consistently displayed the count of unread messages in mailboxes as being one greater than the actual amount of unread messages.

This does not apply if there are no unread messages in the mailbox.

Steps to reproduce:
1. Observe that there are no unread messages in the mailbox 
2. Receive one email 
3. Observe that the unread message count for that mailbox reads 2
4. Delete the message
5. Observe that the unread message count reads 0

Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Akhil Laddha 2009-04-07 11:25:20 UTC
may be related to bug 561549
Comment 2 Akhil Laddha 2009-07-13 08:46:03 UTC
which provider or account type do you have ?
Comment 3 Sam Morris 2009-08-02 10:59:15 UTC
imap and mbox.

Still present in 2.26.
Comment 4 Sam Morris 2009-09-09 23:54:18 UTC
2.26.3 to be precise.
Comment 5 Sam Morris 2010-02-12 02:34:48 UTC
Still broken in 2.28.2.

Can I provide any log files or similar information to help debug this?
Comment 6 Milan Crha 2010-03-26 17:24:41 UTC
*** Bug 582494 has been marked as a duplicate of this bug. ***
Comment 7 Milan Crha 2010-03-26 17:25:34 UTC
*** Bug 586253 has been marked as a duplicate of this bug. ***
Comment 8 Milan Crha 2010-03-26 17:28:18 UTC
I see this from time to time on actual master too (~2.30.0), but not so consistently. It's sometimes on a local folder (On This Computer/Inbox, newly received mail sets unread count to 1, which is shown in the tree as well; I select the message and as I have "Mark as read after X seconds" set, then it's marked as read after 1.5 second, but the folder three still shows 1 unread mail). But as I said, I do not see this consistently.
Comment 9 Akhil Laddha 2010-05-12 05:33:50 UTC
bug 588448 could be a dupe ?
Comment 10 Milan Crha 2010-05-12 08:46:59 UTC
(In reply to comment #9)
> bug 588448 could be a dupe ?

Yes, I believe it is.
Comment 11 Akhil Laddha 2010-05-12 08:54:47 UTC
*** Bug 588448 has been marked as a duplicate of this bug. ***
Comment 12 Alexander Usyskin 2010-05-25 12:35:49 UTC
Look alike with the problem with evolution-rss folders (https://bugzilla.gnome.org/show_bug.cgi?id=574224)

Still happens for me with Evolution 2.28.3 (Ubuntu 10.04)
Comment 13 Patrick OCallaghan 2010-08-28 13:51:44 UTC
(Hope this is the right place. There are several Unread Count bugs in BZ, which may or may not be related).

How to reliably create an incorrect Unread count (in Evo 2.30.2):

1) Select an unread message in an IMAP folder.
2) Delete it.
3) Drag and drop the deleted message to a local folder.

In the local folder the message appears as undeleted and unread, but the Unread count for the local folder is bumped by one.

How to correct the Unread count:

1) Select any Read (i.e. not Unread) message in the folder.
2) Mark it as Unread. Note that the Unread count *does not change*.
3) Now mark it as Read. The Unread count decrements.

This only happens when dealing with an incorrect Unread count. Folders with the correct count do not show this behaviour. Note also that if you apply step (2) several times, the Unread count will start to increase once it has accounted for the incorrectly-labelled messages.

I've experimented with this on IMAP->IMAP moves and local->local moves, neither of which show the problem. Interestingly, a local->IMAP move of a deleted message undeletes the message in the IMAP folder, but doesn't alter the Unread count.

Input filters which move messages from IMAP folders to local ones could presumably create the inconsistent count without user intervention, but I haven't experimented with this.
Comment 14 Milan Crha 2010-10-01 08:18:59 UTC
*** Bug 617659 has been marked as a duplicate of this bug. ***
Comment 15 Milan Crha 2010-10-05 12:16:53 UTC
I can reproduce with Patrick's steps on 2.32.0, but actual master, 2.91.0, doesn't exhibit of this.
Comment 16 Sam Morris 2011-08-16 12:47:14 UTC
I'm still seeing this with 2.32. Patrick's steps for correcting the unread count do not work for me.
Comment 17 Milan Crha 2011-08-23 11:32:09 UTC
Could you retest with 3.0.x, please? The best with (to be released) 3.0.3, which contains fix from bug #562912, which can have a little influence on this too. (See bug #562912 comment #15 for a bit more information.) Thanks in advance.
Comment 18 Christoph Wickert 2011-09-07 22:34:04 UTC
I am not sure of I had the original reporter of this bug, I filed my own which was then closed duplicate. And yes, I am still experiencing the behavior I described in bug 617659 but this time it is because of bug 651469. So for me there is nothing that needs to be tracked here any longer.
Comment 19 Akhil Laddha 2011-10-21 05:15:43 UTC
Please feel free to reopen the bug if the problem still occurs with a newer
version of Evolution 3.0.3 or 3.2.0 or later, thanks.
Comment 20 Sam Morris 2012-02-10 14:41:25 UTC
I'm still seeing this with 3.2.2. My local Drafts folder is empty, yet it shows 3 unread messages in the folder list.
Comment 21 Christoph Wickert 2012-03-30 13:14:32 UTC
I did not have this problem in 3.0.x and skipped 3.2.x, but now it is back in 3.3.91 and 3.4 and worse then ever before: Some folder don't seem to update and it seems that mail gets lost.

1. Mail gets filtered into my "Bugzilla" folder I am supposed to have 24 messages there - however I don't see any of them and if I filter the folder for unread, evolution claims there are none.
2. I manually move mails to my "Fedora" folder but they do not show up there. This means that I cannot access important data ATM.

Restarting evolution does not help. The only thing I can do is copy the whole folder (with left click in the tree view) to another location and then open it. The new folder will have all mails and a correct count of unread mails. The old folders remain broken and more and more folders seem to break.

This only affects local folders, no remote IMAP.
Comment 22 Milan Crha 2014-09-02 16:06:58 UTC
I do not recall seeing this since 3.10/3.12, thus I'm closing this.