Bug 447555

Summary: Clicking the junk mail icon cycles strangely through various junk/nonjunk states
Product: [Applications] kmail2 Reporter: Erik Quaeghebeur <bugs.kde.org>
Component: message listAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 5.16.3   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Erik Quaeghebeur 2021-12-26 23:58:34 UTC
SUMMARY
When clicking the junk mail icon cycles strangely through various junk/nonjunk states

STEPS TO REPRODUCE
1. Use a message list theme like ‘smart with clickable icons’
2. Click the junk mail icon
3. Click the junk mail icon [Repeat multiple times to cycle]

OBSERVED RESULT
The icon changes strangely (or not) between junk/nonjunk/neither

In akonadiconsole, I can follow the flag changes associated to the clicks (>):

(neither) [softened icon] > $notjunk [notjunk icon] > $notjunk,$JUNK [either icon can apparently come up] > $notjunk,$JUNK,$NOTJUNK [either icon can apparently come up] > (neither) [softened icon]

(I am not sure whether this sequence is deterministic.)

EXPECTED RESULT
The icon changes (cycles) in some clear way

SOFTWARE/OS VERSIONS
KMail version: 5.08.3
KDE Plasma Version: 5.23.4
KDE Frameworks Version: 5.88
Qt Version: 5.15.2