Bug 325571 - option to delete all attachments
Summary: option to delete all attachments
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: commands and actions (show other bugs)
Version: 4.14.10
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 366398 369106 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-03 06:46 UTC by Peer Frank
Modified: 2023-08-02 13:26 UTC (History)
6 users (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 Peer Frank 2013-10-03 06:46:39 UTC
wish: saving (all) attachments should have the option to remove them from the message
or in a more general solution: a command that allows to remove all attachments 

Reproducible: Always
Comment 1 Bernhard E. Reiter 2016-04-04 06:51:32 UTC
Hi,
the option to delete all attachment is still missing in 4.14.10 desktop version of Kontact Mail.

My use case is:
The reader wants to record in a space saving way that the email correspondence 
has happened after the many attachments of an email has been used (saved). 

Personally I would expect this option in the context menus of the attachments
in the header and the mail structure view.
Comment 2 Erik Quaeghebeur 2016-06-30 08:47:52 UTC
Bug 351426 is a duplicate of this one, with the added detail that not only one or all should be removable at once, but also some (a selection).
Comment 3 Daniel Vrátil 2023-07-30 11:46:24 UTC
*** Bug 369106 has been marked as a duplicate of this bug. ***
Comment 4 Daniel Vrátil 2023-07-30 11:47:09 UTC
*** Bug 366398 has been marked as a duplicate of this bug. ***
Comment 5 Bug Janitor Service 2023-08-01 16:53:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/pim/kmail/-/merge_requests/92
Comment 6 Daniel Vrátil 2023-08-02 13:26:01 UTC
Git commit a550b30943c46202fcf897c0c61c06657891a17a by Daniel Vrátil.
Committed on 02/08/2023 at 14:49.
Pushed by dvratil into branch 'master'.

Add "Delete All Attachments" action to context menu

Complementary to "Save All Attachments" this action can be applied to
a single message currently displayed in message viewer as well as to
a selection in message list.

It uses the same internal logic as "Save All Attachments", so if the
user first saves all attachments and then deletes them, they should not
lose any data.

A confirmation dialog is shown before the deletion, if there's at least
one cryptographically signed message in the selection it will also warn
about signature being invalidated by the operation, and if there's at
least one encrypted message it informs the user that deleting
attachments from encrypted messages is not supported.

M  +1    -1    CMakeLists.txt
M  +94   -0    src/kmcommands.cpp
M  +20   -0    src/kmcommands.h
M  +72   -1    src/kmmainwidget.cpp
M  +2    -0    src/kmmainwidget.h

https://invent.kde.org/pim/kmail/-/commit/a550b30943c46202fcf897c0c61c06657891a17a