Bug 4187

Summary: Folder new/unread status incorrect after power off
Product: Claws Mail (GTK 2) Reporter: George <removed-gdpr>
Component: UI/Folder ListAssignee: users
Status: NEW ---    
Severity: enhancement    
Priority: P3    
Version: 3.17.4   
Hardware: PC   
OS: Linux   

Description George 2019-03-24 12:04:29 UTC
I have experienced several unfortunate power offs while reading email and RSS. Roughly the STR is:

1. Have some new/unread messages (email or RSS)
2. For simplicity:

FolderA: 5 unread
FolderB: 0 unread

3. Read the messages in FolderA, marking them as read
4. Do NOT quit CM but power off (or kill it?)
5. Run CM again

EXPECTED:

FolderA: 0 unread and not show bold.

ACTUAL:

FolderA is still bold (and blue if it was blue in step 2). Clicking on it shows that all messages are read (correctly). Right after that click FolderA is no longer bold.

I suppose this may be due to CM writing the status of the folder on quit which leads to the described data discrepancy. Although this is not an actual bug it would be better not to have this discrepancy. Otherwise (suppose) if one has to go through many messages and folders if some unfortunate event causes an abnormal program termination.