Bug 503136

Summary: Apply tag message filter action always defaults to first tag entry
Product: [Applications] kmail2 Reporter: cshrimpt+kdebug
Component: commands and actionsAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: montel
Priority: NOR    
Version First Reported In: 6.3.3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 25.04.1
Sentry Crash Report:

Description cshrimpt+kdebug 2025-04-21 19:28:08 UTC
SUMMARY

When creating a message filter to apply a tag, a tag is applied, but it always defaults to the first tag in the list. Any attempt to update the filter to reflect the desired tag reverts back to the first one in the list.


STEPS TO REPRODUCE
1. Create three tags, 1,2 and 3
2. Create a filter to apply tag 2 to an incoming message
3. Hit apply and the tag will switch back to tag 1
4. When filter executes, tag 1 is always applied

OBSERVED RESULT

When filter executes, tag 1 is always applied


EXPECTED RESULT

Desired tag should be saved and applied. Application apparently not updating message filter file.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: SUSE Tumbleweed
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0

ADDITIONAL INFORMATION
Comment 1 Laurent Montel 2025-04-22 06:11:43 UTC
I confirm it.
I will work on it
Comment 2 Laurent Montel 2025-04-22 06:41:27 UTC
Git commit 566cf1df415201a38a750e5faf83f03ba18945d7 by Laurent Montel.
Committed on 22/04/2025 at 06:40.
Pushed by mlaurent into branch 'release/25.04'.

Fix 503136:  Apply tag message filter action always defaults to first tag entry

FIXED-IN: 25.04.1

M  +1    -2    src/filter/filteractions/filteractionaddtag.cpp

https://invent.kde.org/pim/mailcommon/-/commit/566cf1df415201a38a750e5faf83f03ba18945d7