Bug 277675

Summary: KMail marks some mails as unread when updating a folder
Product: [Applications] kmail2 Reporter: Médéric Boquien <mboquien>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: amantia, j-kde_bts, philipp.woelfel
Priority: NOR    
Version: 2.1.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Médéric Boquien 2011-07-13 07:02:02 UTC
Version:           2.1.1 (using KDE 4.6.4) 
OS:                Linux

When i "update [a] folder" (maildir), which can contain thousands of emails, hundreds of emails are suddenly marked as unread. Always the same emails. Then marking the mails as read, they remain in a "read" state until the next time i restart kmail and perform the above-mentioned steps.

Reproducible: Always

Steps to Reproduce:
right-click on a folder and click on "Update Folder"

Actual Results:  
Some emails, always the same, are marked as unread.

Expected Results:  
Read mails keep the "read" status.

Receiving a new mail and clicking on the folder it got moved to for the first time after kmail starts yields the exact same results.
Comment 1 JHF2442 2011-07-28 21:45:51 UTC
Same issue here. Found out that removing the .folder_name.index file solves the issue
Comment 2 JHF2442 2011-07-28 21:47:00 UTC
sorry, wrong bug :-( ignore the post
Comment 3 Philipp Woelfel 2011-07-30 17:05:29 UTC
I can confirm this with kmail2, KDE 4.7 (openSUSE RPMs)
Comment 4 Médéric Boquien 2011-08-03 13:19:51 UTC
Possible dupe of 276856. Bug 278737 sounds similar too.
Comment 5 András Manţia 2012-02-11 23:49:58 UTC
This should be fixed with IIRC KDE 4.7.2+, but definitely with KDE 4.8.0. Please reopen if you still see it.