Closed Bug 1893700 Opened 2 years ago Closed 2 years ago

Move smart folder and virtual tag folder code from mail3pane.js to SmartServerUtils.sys.mjs

Categories

(Thunderbird :: Mail Window Front End, task)

task

Tracking

(Not tracked)

RESOLVED FIXED
127 Branch

People

(Reporter: john, Assigned: john)

References

Details

Attachments

(1 external file)

No description provided.
Component: Add-Ons: Extensions API → Mail Window Front End
Summary: Move smartfolder handling code from mail3pane.js to SmartServerUtils.sys.mjs → Move smart folder and virtual tag folder code from mail3pane.js to SmartServerUtils.sys.mjs

We currently use getSmartServer() in various code areas to create, get
and update the smart account/server/folders. The virtual tags folders
were not handled by that method and the required code was only
triggered, when the user enabled the "tags" folder mode in the UI.

The WebExtension API needs access to these tag folders even if the user
has not yet enabled that folder mode.

This patch adds a SmartMailbox class, which simplifies tasks related to
unified mailbox folders and virtual tag folders, and creates the
virtual tag folders together with the unified mailbox folders.

It renames SmartServerUtils.sys.mjs to SmartMailboxUtils.sys.mjs.

Depends on D208762

Assignee: nobody → john
Attachment #9398891 - Attachment description: WIP: Bug 1893700 - Move smart folder and virtual tag folder code from mail3pane.js to SmartServerUtils.sys.mjs → Bug 1893700 - Move smart folder and virtual tag folder code from mail3pane.js to SmartMailboxUtils.sys.mjs r=#thunderbird-reviewers
Status: NEW → ASSIGNED

Pushed by vineet@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/d690cbee4b7f
Move smart folder and virtual tag folder code from mail3pane.js to SmartMailboxUtils.sys.mjs r=freaktechnik

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

Attachment

General

Creator:
Created:
Updated:
Size: