Message API (WebExtension) function to detach and/or delete attachments
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(Not tracked)
People
(Reporter: Thunderbird_Mail_DE, Assigned: TbSync)
References
Details
(Keywords: leave-open, Whiteboard: [Prio2023])
Attachments
(2 files, 1 obsolete file)
We need an API to detach and/or delete attachments.
It should be possible to do this as a bulk operation.
An additional permission may be necessary.
This API would be necessary for add-ons like "AttachmentExtractor" / "AttachmentExtractor Continued".
Reporter | ||
Comment 1•5 years ago
|
||
Any interesst in providing the necessary API? Maybe I'm wrong and no additional API is necessary?
Related Bugs:
Bug 92146 (Thunderbird should provide the features itself)
Bug 1578801 (Provide an additional save path attribute)
Comment 2•3 years ago
|
||
Bug 1645595 would likely need to be fixed before or as part of this.
Comment hidden (off-topic) |
Updated•2 years ago
|
Assignee | ||
Updated•9 months ago
|
Assignee | ||
Comment 4•5 months ago
|
||
Updated•5 months ago
|
Assignee | ||
Comment 5•5 months ago
|
||
Updated•5 months ago
|
Pushed by john@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/ee2aefbbec08
Add messages.deleteAttachments() method. r=mkmelin
Assignee | ||
Comment 7•4 months ago
|
||
We are still working on the detach option.
Comment 8•4 months ago
|
||
Looks like you broke comm/mail/components/extensions/test/browser/browser_ext_messages_open_attachment.js
Assignee | ||
Comment 9•4 months ago
|
||
Comment 11•4 months ago
|
||
And mail/components/extensions/test/xpcshell/test_ext_messages_attachments.js, not fixed by the new patch.
Comment 12•4 months ago
|
||
And there's an error in the schema tripping up the debug tests. I think you want minItems
instead of minimum
when it relates to arrays.
Since it's very late where you are I'm going to back this out and you can fix it in the morning.
Comment 13•4 months ago
|
||
Backout by geoff@darktrojan.net: https://hg.mozilla.org/comm-central/rev/da59d14e87f9 Backed out changeset ee2aefbbec08 for multiple test failures.
Updated•4 months ago
|
Assignee | ||
Comment 14•4 months ago
|
||
Try run is looking good now:
https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=12e2c1e6223cb12766d7527bad9674ede0ea45a3
Comment 15•4 months ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b51fb504a659
Add messages.deleteAttachments() method. r=mkmelin
https://hg.mozilla.org/comm-central/rev/0816e8b5b6fb
Fix broken usage of getUriForMsg() and broken schema definitions. r=mkmelin
Updated•4 months ago
|
Description
•