Bug 305969

Summary: search folder is allways said to contain #results unread mails
Product: [Applications] kmail2 Reporter: Anders Lund <anderslund>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.9.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Anders Lund 2012-08-29 07:32:00 UTC
After doing a search, the search folder is set to contain unread mails, even though it does not (nessecarily). The messages in there can not be set to read, since they already are, and folder->mark all messages as read have no effect. When navigating using the "+" shortcut to go to next unread message, the search folder is then always visited, even though there are no unread messages in it.

There is a possible relation with bug 302546.

Reproducible: Always

Steps to Reproduce:
1. do a search
Actual Results:  
search folder wrongly appears to have #results unread messages

Expected Results:  
search folder should have a true number of read messages
Comment 1 Daniel Vrátil 2012-12-21 16:18:32 UTC
Git commit 16951119eb0914c4869fdc8bb4b2339bea4241ab by Dan Vrátil.
Committed on 21/12/2012 at 17:14.
Pushed by dvratil into branch 'master'.

Correctly count items flags in virtual collections

REVIEW: 107715
Related: bug 274936

M  +7    -1    server/src/handlerhelper.cpp

http://commits.kde.org/akonadi/16951119eb0914c4869fdc8bb4b2339bea4241ab