Bug 397703 - Kmail2 5.9.0: Message list shows read mails as unread
Summary: Kmail2 5.9.0: Message list shows read mails as unread
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail2
Classification: Applications
Component: message list (show other bugs)
Version: 5.9.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-21 12:28 UTC by Till Schäfer
Modified: 2020-11-23 23:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot of the bug (2 mails marked blue in the folder golem with unread count 0) (597.04 KB, image/png)
2018-08-21 12:28 UTC, Till Schäfer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Till Schäfer 2018-08-21 12:28:29 UTC
Created attachment 114529 [details]
screenshot of the bug (2 mails marked blue in the folder golem with unread count 0)

When I go through my mails in the message list, some mails are still marked unread after if have read them. However, the counter in the folder view is decreasing correctly (see screenshot: two mails are painted blue in the folder golem, but the folder count is 0). Changing the folder does not fix the problem. Only a restart of KMail fixes the wrong representation. I allway navigate with the keyboard to switch through the mails (arrow keys), but after the bug occurred, clicking the schroedinger state mail does not fix the wrong representation. 

This is a regression after upgrading to KMail 5.9.0 from 5.8.3 and happens quiet frequently.

complete software stack: 
- kde apps 18.08.0
- kde frameworks: 5.49
- plasma 5.13.4
- qt 5.11.1
Comment 1 Till Schäfer 2018-08-21 12:41:54 UTC
This seems to happen more often, when I go through the mails in a faster rate, i.e., press the right/left arrow 3 time a second or so. This often happens when I skip some rss news with dull content. Smells like some race condition..
Comment 2 sourcemaker 2018-08-21 22:11:03 UTC
Can you also confirm Bug 397677?
Comment 3 Till Schäfer 2018-08-21 22:25:01 UTC
(In reply to sourcemaker from comment #2)
> Can you also confirm Bug 397677?

does the error persist after an application restart? 

In my case read mails never change the status to unread. Its only the other way round, i.e., that unread mails sometimes do not change correctly to the status read.
Comment 4 sourcemaker 2018-08-21 22:30:48 UTC
All mails can be marked as unread and it works fine.
Unfortunately, the folder list shows all mails as unread.
Comment 5 sourcemaker 2018-08-21 22:31:23 UTC
does the error persist after an application restart? 
=> YES
Comment 6 Till Schäfer 2018-08-21 23:03:35 UTC
does not seem to be a duplicate then
Comment 7 sourcemaker 2018-10-06 21:02:45 UTC
Same issue with 5.9.1
Comment 8 Till Schäfer 2020-11-23 23:39:27 UTC
does not occur to me in 5.15.3 anymore