Closed Bug 1878620 Opened 8 months ago Closed 7 months ago

Update convertMessagePart() to accept a MimeTreePart and remove no longer used ExtractMimeMsgEmitter

Categories

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

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: TbSync, Assigned: TbSync)

References

Details

Attachments

(2 obsolete files)

No description provided.
Summary: Replace usage of MsgHdrToMimeMessage in favour of MimeParser.extractMimeMsg() in the WebExtension messages API → Replace usage of MsgHdrToMimeMessage and MimeParser.extractMimeMsg() by MimeTreeEmitter in the WebExtension messages API

This removes the temporary glue code introduced in D202135 and adapts
convertMessagePart() to accept a MimeTreePart and still generates
the expected WebExtension MessagePart object.

Some tests had to be changed, because the former behavior was wrong:

  • The MimeTreePart of a deleted attachment has an inline disposition and
    is therefore not an attachemnt and must not have a name property.
  • Many content-* headers form the first MIME part bleeded into the
    headers object of the outer message/rfc822, fixed.

Depends on D202135

Attachment #9378227 - Attachment is obsolete: true
Blocks: 1880987
Assignee: nobody → john
Attachment #9380880 - Attachment description: WIP: Bug 1878620 - Update convertMessagePart() to accept a MimeTreePart, remove no longer used MimeMessageEmitter. → Bug 1878620 - Update convertMessagePart() to accept a MimeTreePart, remove no longer used ExtractMimeMsgEmitter. r=#thunderbird-reviewers
Status: NEW → ASSIGNED
Blocks: 1854684
Blocks: 1737532
No longer blocks: 1737532
No longer blocks: 1880987
No longer blocks: 1854684
Depends on: 1854684
No longer depends on: 1876008
Blocks: 1737532
Blocks: 1880987
Blocks: 1881004
Summary: Replace usage of MsgHdrToMimeMessage and MimeParser.extractMimeMsg() by MimeTreeEmitter in the WebExtension messages API → Update convertMessagePart() to accept a MimeTreePart and remove no longer used ExtractMimeMsgEmitter
Attachment #9380880 - Attachment is obsolete: true
No longer blocks: 1737532
No longer blocks: 1880987
No longer blocks: 1881004

The patch flow has been changed and this bug is not longer needed.

Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: