Closed Bug 1920436 Opened 4 months ago Closed 4 months ago

messages.listAttachments() fails to list forwarded messages, which do not have a content-disposition header

Categories

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

defect

Tracking

(thunderbird_esr128 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
thunderbird_esr128 --- fixed

People

(Reporter: TbSync, Assigned: TbSync)

Details

Attachments

(1 file)

This is a continuation of Bug 1898617. Our attachment detection code
missed some edge cases and did not consider inline forwarded messages as
attachments (which is what Thunderbird itself is doing). However, we
also missed to consider forwarded messages as attachments, which do not
have a content-disposition header at all.

This also adds a test for this additional edge case.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/b9b900516349
Always handle forwarded messages as attachments, even if the content-disposition header is missing. r=tobyp

Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch

Comment on attachment 9426429 [details]
Bug 1920436 - Always handle forwarded messages as attachments, even if the content-disposition header is missing. r=#thunderbird-reviewers

[Approval Request Comment]
Regression caused by (bug #): Cannot say which bug exactly, but caused by the new message parsing code used by the WebExtension API in TB128
User impact if declined: Some attachments are not considered as attachments and are not returned by messages.listAttachments()
Testing completed (on c-c, etc.): 21 days on c-c, 14 days on beta
Risk to taking this patch (and alternatives if risky): Moderate. Has a test.

Attachment #9426429 - Flags: approval-comm-esr128?

Comment on attachment 9426429 [details]
Bug 1920436 - Always handle forwarded messages as attachments, even if the content-disposition header is missing. r=#thunderbird-reviewers

[Triage Comment]
Approved for esr128

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

Attachment

General

Created:
Updated:
Size: