Bug 404433 - Messages wrongly shown as "unread"
Summary: Messages wrongly shown as "unread"
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-16 10:55 UTC by kde
Modified: 2019-04-19 09:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
supposedly unread in folder view (8.24 KB, image/png)
2019-02-16 10:55 UTC, kde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kde 2019-02-16 10:55:15 UTC
Created attachment 118132 [details]
supposedly unread in folder view

SUMMARY
All messages in KMail's folder view are shown as "unread", the panel icon also shows this wrong number of supposedly unread messages.

STEPS TO REPRODUCE
1. open KMail
2. check folder view and/or panel icon

OBSERVED RESULT
see lots of "unread" messages even though they are already read and also show as "read" in the message list.

EXPECTED RESULT
the folder view and panel icon should display the actual number of unread messages

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20190214
KDE Plasma Version: 5.15.0
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.0
Kernel Version: 4.20.7-1-default
OS Type: 64-bit
KMail Version: 5.10.2

ADDITIONAL INFORMATION
This bug started to appear after the latest upgrade to TW 20190214 which brought Plasma 5.15, Frameworks 5.55.0 and Applications 18.12.2
Comment 1 kde 2019-02-17 17:01:08 UTC
This happens on two machines with KMail and Tumbleweed.
I'm using the Postgres backend.

Things I tried that didn't help:

* restarting KMail
* selecting "work offline" and then "work online" again
* selecting "mark all mails as read"
* selecting all mails in the message list, marking them as "unread" and then as "read" again
* restarting and synchronizing the corresponding agents in 'akonadiconsole'

When a new mail comes in and is read, this clears the wrong "unread" count temporarily. However, after a restart of KMail, the wrong number is back again.
Comment 2 Daniel Vrátil 2019-03-14 13:41:53 UTC
Can you check what's the state of the message on the IMAP server? Are they marked as read there, too?

Sounds like an inconsistency between the statistics cache and real state.
Comment 3 kde 2019-03-14 13:44:19 UTC
Yes, the webmail client (SOGo) shows unread statuses correctly.

I already tried akonadictl fsck/vacuum but it didn't help, although the wrong unread count changes.

KMail prints this to stdout, maybe a hint?

org.kde.pim.messagelist: Circular reference loop detected in the message tree
Comment 4 kde 2019-03-24 19:20:34 UTC
I set up all Akonadi stuff again from scratch now, and so far it works.
Comment 5 Christoph Feck 2019-04-19 09:12:07 UTC
Thanks for the update; changing status.

If you still have an issue, please add a comment or report a new ticket.