[Bug 303140]

Kai Engert 303140 at bugs.launchpad.net
Mon Sep 23 21:18:05 UTC 2024


We could potentially use the the following implementation:

When building the list of right-click-menu actions, we currently check
for the signature content type. If we find it, we disable the
delete/detach attachment actions.

A suggested enhanced implementation, with a minimal UI change, could do
the following:

When we detect the signature content-type, we change the wording of the menu command to
"remove message signature and delete/detach".

When the user selects that, the simplest implementation could do a two-phase action.
In a first step, we transform the message content-type. I'd suggest to go through all of the message, and replace all content-types that start with multipart/signed with multipart/mixed (reusing the suggested stragegy from the earlier comments).

I think it would be sufficient to simply leave the additional attributes
in place.

So the first step loads the message, changes the content-type everywhere in the message, the replaces the message in storage.
Then, as a second step, we call the existing code to delete/detatch the attachment.

If we can find a simple way to do step 1, this might be rather
straightforward to implement.

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to thunderbird in Ubuntu.
https://bugs.launchpad.net/bugs/303140

Title:
  No more "Save all" / "detach all" / "delete all" for attachments

To manage notifications about this bug go to:
https://bugs.launchpad.net/thunderbird/+bug/303140/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list