Bug 413510

Summary: Unread count on Inbox after manual filtering to local folders
Product: [Applications] kmail2 Reporter: BingMyBong <bingmybong>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.12.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description BingMyBong 2019-10-27 09:32:12 UTC
SUMMARY
I manually filter emails out of the imap inbox to Local Folders.  Once all emails are in the Inbox, i press "ctrl a" to select all then press the "Apply all filters" button on the toolbar.
All the mails are moved to their relevant folder within the "Local Folders" structure.
The count of "Unread", most times, is not cleared from the Inbox folder even though there are no longer any unread emails there.
If you close kmail and reopen, the count is correctly no longer there.

STEPS TO REPRODUCE
1. Let Inbox fully populate
2. Select all emails with "ctrl a"
3. Press "Apply all filters" (via menu or toolbar button)

OBSERVED RESULT
All emails moved to correct folders in "Local Folder" structure.
Unread count still 

EXPECTED RESULT
Unread count removed from Inbox

SOFTWARE/OS VERSIONS
opensuse:tumbleweed:20191023
Qt: 5.13.1 KDE Frameworks: 5.63.0 - KDE Plasma:  5.17.0 - kwin 5.17.0
kmail2 5.12.2 - akonadiserver 5.12.2 - Kernel:  5.3.6-1-default  - xf86-video-nouveau:  1.0.15

ADDITIONAL INFORMATION