Closed Bug 1898854 Opened 1 year ago Closed 1 year ago

Add function to extract inline text parts from a message, which are not returned by listAttachments()

Categories

(Thunderbird :: Add-Ons: Extensions API, task)

Tracking

(thunderbird128 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
thunderbird128 --- fixed

People

(Reporter: john, Assigned: john)

References

Details

(Whiteboard: [PrioESR128])

Attachments

(1 file)

No description provided.

This adds a method to extract a flat list of inline text parts found
in a message. These parts and their content can already be accessed
through messages.getFull(), but in order to find these parts, detailed
knowledge regarding the structure of MIME messages is needed.

This helper function allows listing all inline text parts, just as
messages.listAttachments() allows listing all attachments.

Note: The messages API considers everything which is not an inline text
part, to be an attachment. The new function is therefore the
counterpart of messages.listAttachments().

Assignee: nobody → john
Status: NEW → ASSIGNED
Blocks: 1830212
Summary: Add function to extract MIME text parts from a message (those with content type text/*), excluding attachments and related parts → Add function to extract inline text parts from a message, which are not returned by listAttachments()
Attachment #9403943 - Attachment description: Bug 1898854 - Add messages.listTextParts() to get a message's MIME text parts. r=mkmelin,jcranmer,leftmostcat → Bug 1898854 - Add messages.listInlineTextParts() to get a flat list if inline text parts. r=mkmelin,jcranmer,leftmostcat
Attachment #9403943 - Attachment description: Bug 1898854 - Add messages.listInlineTextParts() to get a flat list if inline text parts. r=mkmelin,jcranmer,leftmostcat → Bug 1898854 - Add messages.listInlineTextParts() to get a flat list of inline text parts. r=mkmelin,jcranmer,leftmostcat
Whiteboard: [PrioESR128]
Attachment #9403943 - Attachment description: Bug 1898854 - Add messages.listInlineTextParts() to get a flat list of inline text parts. r=mkmelin,jcranmer,leftmostcat → Bug 1898854 - Add messages.listInlineTextParts() to get a flat list of inline text parts. r=mkmelin
Target Milestone: --- → 129 Branch

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/7075042cbd14
Add messages.listInlineTextParts() to get a flat list of inline text parts. r=mkmelin

Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED

Comment on attachment 9403943 [details]
Bug 1898854 - Add messages.listInlineTextParts() to get a flat list of inline text parts. r=mkmelin

[Approval Request Comment]
Regression caused by (bug #): -
User impact if declined: Helper function for extracting inline text parts not available
Testing completed (on c-c, etc.): A few days (missed landing on 128 by a few days)
Risk to taking this patch (and alternatives if risky): Low

Attachment #9403943 - Flags: approval-comm-beta?

Comment on attachment 9403943 [details]
Bug 1898854 - Add messages.listInlineTextParts() to get a flat list of inline text parts. r=mkmelin

[Triage Comment]
Approved for beta

Attachment #9403943 - Flags: approval-comm-beta? → approval-comm-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: