Bug 463283 - Keyboard shortcut for Archive works only once and gets deleted afterwards
Summary: Keyboard shortcut for Archive works only once and gets deleted afterwards
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 5.22.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-20 20:26 UTC by thomas
Modified: 2022-12-20 20:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thomas 2022-12-20 20:26:12 UTC
SUMMARY
***
I am trying to archive emails via keyboard shortcut and somehow the assigned key works only once. 
***

STEPS TO REPRODUCE
0. Set up A folder for Archiving via Settings/Configure Kmail/Accounts/Receiving/Archive Folder
1. Open Settings/Configure Keyboard Shortcuts 
2. Filter/Search by "archive"
3. There are two options, "Archive" and "Archive Folder"
4. Select "Archive"
5. Set custom shortcut, I tried several and none worked, but for this example let's use Alt-A
6. Press Ok to save
7. Repeat 1-3 to confirm the setting is still there
8. Navigate to the folder set up for Archiving
9. Hit Alt-A
10. Email under cursor disappears and is moved to Archive location, as expected
11. Hit Alt-A a second time, nothing happens
12. Repeat 1-3 to observe that the shortcut has disappeared

I am able to repeat this as often as I want, the shortcut gets deleted after first usage.
I also tried the "Archive Folder" option in step 3, in this case the shortcut is not deleted, behaves as expected.

EXPECTED RESULT
Shortcut is not deleted after first use.

I have seen this one here: https://bugs.kde.org/show_bug.cgi?id=345992 but wasn't sure if it's ok to bring this 4 year old zombie back to live or if I better start a new.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.12-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6920HQ CPU @ 2.90GHz
Memory: 31,1 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 530
Manufacturer: Dell Inc.
Product Name: Precision 7510
Comment 1 thomas 2022-12-20 20:33:08 UTC
Just noticed that this journalctl error. It shows up once whenever the first (working) Alt-A is hit: 

    kmail[2286]: kf.xmlgui: Index  72  is not within range (0 -  20 )
Comment 2 thomas 2022-12-20 20:41:18 UTC
Ignore the kf.xmlgui comment, Looks to be unrelated as it continues to show no matter if in Kmail