Changelog for Thunderbird 102
The following WebExtension API changes were introduced in Thunderbird 102.
compose
function getActiveDictionaries — Returns a compose.ComposeDictionaries object, listing all installed dictionaries, including the information whether they are currently enabled or not.
function saveMessage — Saves the message currently being composed as a draft or as a template. If the save mode is not specified, the message will be saved as a draft. The returned Promise fulfills once the message has been successfully saved.
function setActiveDictionaries — Updates the active dictionaries. Throws if the activeDictionaries array contains unknown or invalid language identifiers.
event onActiveDictionariesChanged — Fired when one or more dictionaries have been activated or deactivated.
type ComposeDetails.additionalFccFolder — An additional fcc folder which can be selected while composing the message, an empty string if not used. The permission is required to use this property.
type ComposeDetails.attachVCard — Whether or not the vCard of the used identity will be attached to the message during send.
type ComposeDetails.deliveryFormat — Defines the MIME format of the sent message (ignored on plain text messages). Defaults to auto, which will send html messages as plain text, if they do not include any formatting, and as both otherwise (a multipart/mixed message).
type ComposeDetails.deliveryStatusNotification — Let the sender know when the recipient’s server received the message. Not supported by all servers.
type ComposeDetails.overrideDefaultFcc — Indicates whether the default fcc setting (defined by the used identity) is being overridden for this message. Setting false will clear the override. Setting true will throw an ExtensionError, if overrideDefaultFccFolder is not set as well. The permission is required to use this property.
type ComposeDetails.overrideDefaultFccFolder — This value overrides the default fcc setting (defined by the used identity) for this message only. Either a folders.MailFolder specifying the folder for the copy of the sent message, or an empty string to not save a copy at all. The permission is required to use this property.
type ComposeDetails.priority — The priority of the message.
type ComposeDetails.returnReceipt — Add the Disposition-Notification-To header to the message to requests the recipients email client to send a reply once the message has been received. Recipient server may strip the header and the recipient might ignore the request.
type ComposeDictionaries — A dictionary object with entries for all installed dictionaries, having a language identifier as key (for example en-US) and a boolean expression as value, indicating whether that dictionary is enabled for spellchecking or not.
messageDisplay
function open — Opens a message in a new tab or in a new window.
messages
function createTag — Creates a new message tag. Tagging a message will store the tag’s key in the user’s message. Throws if the specified tag key is used already.
function deleteTag — Deletes a message tag, removing it from the list of known tags. Its key will not be removed from tagged messages, but they will appear untagged. Recreating a deleted tag, will make all former tagged messages appear tagged again.
function updateTag — Updates a message tag. Throws if the specified tag key does not exist.
type MessageHeader.headersOnly — Some account types (for example pop3) allow to download only the headers of the message, but not its body. The body of such messages will not be available.
scripting
Use the scripting API to execute script in different contexts.