Bug 70143

Summary: KMail ignores status changes from IMAP server.
Product: [Applications] kmail Reporter: Thomas Zander <zander>
Component: IMAPAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 1.5.94   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Thomas Zander 2003-12-11 18:03:36 UTC
Version:           1.5.94 (using KDE 3.1.94 (CVS >= 20031206), compiled sources)
Compiler:          gcc version 3.3.2 (Debian)
OS:          Linux (i686) release 2.4.19

While investigating the 'always unread' email in folder problem I found the following bug in KMail.

Bug:
KMail assumes the cache file is more correct then the headers that come from the IMAP server.

To reproduce:
* Make sure KMail has a folder indexed by opening the folder for instance.
* Go to another folder.
* Externally make an existing email a 'read' email. Easiest way to do this is to go to the maildir folder and remove the 'S' at the end of the filename of the email (in the cur map).
In KMail press 'check mail'.  Your folder will not report 1 unread email.
Go to the mail and notice that the email status has not changed and opening the mail will not mark the folder as 'read'.

After selecting the email the email _is_ marked read on the IMAP server, so the next 'fetch mail' will mark the folder as 'all read' again.
Comment 1 Till Adam 2003-12-28 14:07:27 UTC
Thomas agrees it's a dup.

*** This bug has been marked as a duplicate of 65005 ***