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
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.
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.
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
I set up all Akonadi stuff again from scratch now, and so far it works.
Thanks for the update; changing status. If you still have an issue, please add a comment or report a new ticket.