Closed Bug 1857631 Opened 2 years ago Closed 2 years ago

messenger.folders API can't handle a folder being both templates and drafts

Categories

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

Thunderbird 115
defect

Tracking

(thunderbird_esr115 wontfix)

RESOLVED FIXED
120 Branch
Tracking Status
thunderbird_esr115 --- wontfix

People

(Reporter: 52qtuqm9, Assigned: john)

References

Details

Attachments

(1 file)

As per this Send Later bug, it is possible to designate the same folder for both templates and drafts, and if a user does that, then the API only returns one type for the folder.

If TB doesn't actually intend to allow the same folder to serve both purposes (that might be a bad idea, e.g., since it makes it ambiguous what should happen when a user double-clicks on a message in the folder, edits it, and saves it), then it probably needs to enforce that. On the other hand, if it is intended to be allowed, then the API probably needs to be updated so that consumers of the API have some way of identifying all of the special folder types a folder is.

This lack in the API makes it impossible for the Send Later add-on to use the API to locate all Drafts folders. I'm going to have to go back to locating Drafts folders in Experiment code to make Send Later work properly.

Depends on: 1858109
Assignee: nobody → john
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → 120 Branch

Pushed by john@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/8e9c53644a45
Add support for multiple folder types in MV3. r=mkmelin

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

Attachment

General

Creator:
Created:
Updated:
Size: