Changelog for Thunderbird 121
The following WebExtension API changes were introduced in Thunderbird 121.
accounts
type MailAccount.rootFolder — The root folder associated with this account.
type MailAccountId — A unique id representing a accounts.MailAccount.
folders
function get — Returns the specified folder.
function getFolderCapabilities — Get capability information about a folder.
function markAsRead — Marks all messages in a folder as read.
function query — Gets folders that match the specified properties, or all folders if no properties are specified.
function update — Updates properties of a folder.
event onUpdated — Fired when properties of a folder have changed (specialUse and isFavorite).
type MailFolder.id — An identifier for the folder.
type MailFolder.isFavorite — Whether this folder is a favorite folder.
type MailFolder.isRoot — Whether this folder is a root folder.
type MailFolder.isVirtual — Whether this folder is a virtual search folder.
type MailFolder.specialUse — The special use of this folder. A folder can have multiple special uses.
type MailFolderCapabilities — An object containing capability information about a folder.
type MailFolderId — A unique id representing a folders.MailFolder throughout a session. Renaming or moving a folder will invalidate its id.
type MailFolderInfo.lastUsed — Date the folder was last used. It is updated every time the folder was accessed, when the user moved or copied messages into the folder and when the folder received new messages. (precision: seconds).
type MailFolderInfo.newMessageCount — Number of new messages in this folder.
type MailFolderInfo.quota — Quota information, if available.
type MailFolderQuota — An object containing quota information.
type MailFolderSpecialUse — Supported values for the special use of a folder.
type QueryRange — An object defining a range for an integer value to be used in queries.
mailTabs
function create — Creates a new mail tab. Standard tab properties can be adjusted via tabs.update after the mail tab has been created. A new mail window can be created via windows.create.
function getListedMessages — Lists the messages in the current view, honoring sort order and filters as used in the UI. Sort order of the returned messages can be overridden via the options parameter
messages
function query.queryInfo.accountId — Limits the search to the specified account(s). Accounts are searched in the specified order.
function query.queryInfo.folderId — Limits the search to the specified folder(s). Folders are searched in the specified order. The permission is required.
function query.queryInfo.junk — Returns only messages whith the specified junk state.
function query.queryInfo.junkScore — Returns only messages with a junk score in the specified range.
function query.queryInfo.new — Returns only messages with the specified new state.
function query.queryInfo.read — Returns only messages with the specified read state.
function query.queryInfo.size — Returns only messages with a size in the specified byte range.
type QueryRange — An object defining a range.
tabs
type TabType — Tab types supported by the tabs API.