Bug 471343 - Would like to archive message when viewing it in its own window
Summary: Would like to archive message when viewing it in its own window
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 5.23.2
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: luna
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-22 15:14 UTC by luna
Modified: 2023-09-07 05:23 UTC (History)
1 user (show)

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 luna 2023-06-22 15:14:15 UTC
SUMMARY
When viewing a message in its own window (e.g. from the new mail notification), it would be nice to be able to archive the message from this window. There is no option to do this either in any of the menus or in the default toolbar, nor is there an option to add it.

STEPS TO REPRODUCE
1. Open a message in its own window (e.g. by double-clicking it or selecting it and pressing enter)
2. Navigate through the menus searching for the archive action
3. Browse the customize toolbar menu searching for an archive button
4. There is no archive action in this UI

OBSERVED RESULT
There is no way to archive a message from the individual message view window

EXPECTED RESULT
It would be convenient to be able to archive a message when viewing it on its own. This is particularly helpful when viewing a message from the new mail notification window. Many messages I receive do not require action: I can read them and then immediately archive them. Being able to do this from the message view window means I do not need to open KMail itself (which constitutes a larger mental context switch) to archive it.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Comment 1 Laurent Montel 2023-06-22 15:22:15 UTC
What do you mean by "archive email" ? 
What do you use in kmail apps for doing it ?

Regards
Comment 2 luna 2023-06-22 15:29:15 UTC
Sorry I wasn't clear! What I mean by "archive email" is moving it to the 
Archive folder I have configured for the given account. I have bound the kmail 
> Archive action to a key and use this to move messages. It would be nice to 
be able to have this functionality (either via menu, keybinding, or toolbar) 
when viewing a message in its own window.
Comment 3 Laurent Montel 2023-06-22 18:36:09 UTC
ok I see. I will look at how to implement it
Comment 4 luna 2023-08-23 15:50:59 UTC
(In reply to Laurent Montel from comment #3)
> ok I see. I will look at how to implement it

I've been trying to get this to work myself, so please don't worry about this for now :)
Comment 5 Bug Janitor Service 2023-08-28 01:31:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kmail/-/merge_requests/97
Comment 6 Laurent Montel 2023-09-07 05:23:44 UTC
Git commit 1e2e03f8030eba82f1a0985df03b5727535d549a by Laurent Montel, on behalf of Luna Celeste.
Committed on 07/09/2023 at 07:23.
Pushed by mlaurent into branch 'master'.

Support archiving a message from its own window

When viewing a message in its own window (e.g. by double-clicking it in
the message list), it can be convenient to archive the message directly
from that window instead of having to refocus the main window, select
the message, and then archive it.

Add a menu item for archiving a message.

M  +3    -1    src/kmail_part.rc
M  +3    -1    src/kmmainwin.rc
M  +3    -1    src/kmreadermainwin.rc
M  +22   -0    src/messageactions.cpp
M  +5    -0    src/messageactions.h

https://invent.kde.org/pim/kmail/-/commit/1e2e03f8030eba82f1a0985df03b5727535d549a