Bug 416803

Summary: Junk mail in Trash folder count as unread email in Inbox
Product: [Applications] kmail2 Reporter: brotakul <raduerdei>
Component: foldersAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal CC: linux
Priority: NOR    
Version: 5.11.3   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description brotakul 2020-01-26 19:57:41 UTC
SUMMARY
Any junk mail that is filtered and sent directly to Trash folder is still counted as unread mail in the Inbox folder. Only after viewing those emails from trash or emptying the Trash folder, the unread email count is shown correctly.
The "Act on new/unread mail in this folder" option for the Trash folder is disabled (unticked), but still these mails count as unread in Inbox.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT
New/unread mail in Trash folder counts as new/unread mail in Inbox.

EXPECTED RESULT
Since the "Act on new/unread mail in this folder" option for the Trash folder is unticked/disabled, new/unread mail in Trash should not count as new/unread mail in Inbox.

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Kubuntu 19.10
(available in About System)
KDE Plasma Version: 5.16.5
KDE Frameworks Version: 5.62.0
Qt Version: 5.12.4

ADDITIONAL INFORMATION
Similar issues date back at least since 2005: https://bugs.kde.org/show_bug.cgi?id=117717#c3