Changelog for Thunderbird 153

The following WebExtension API changes were introduced in Thunderbird 153.

messages

api messages
  • function saveMessage — Saves a message programmatically as a draft or as a template in the background without user interaction. The save mode defaults to <value>draft</value>. The returned Promise fulfills once the message has been successfully saved. Throws when there has been an error while saving the message.\n**Note:** If no <value>deliveryFormat</value> is specified, the message is saved as plain text when the body contains no HTML formatting.

  • function sendMessage — Sends a message programmatically in the background without user interaction. If the send mode is not specified or set to <value>default</value>, the message will be sent directly if the user is online and placed in the user’s outbox otherwise. The returned Promise fulfills once the message has been successfully sent or placed in the user’s outbox. Throws when there has been an error while sending the message to the outgoing mail server.\n**Note:** If no <value>deliveryFormat</value> is specified, the message is sent as plain text when the body contains no HTML formatting.\n**Note:** It is possible to pass in a compose.ComposeDetails object as the <value>details</value> parameter, and it will be interpreted as a messages.NewMessageDetails object.

  • type AttachmentType — The type of an attachment in a message.

  • type MessageAttachment.cloudFileUrl — The remote location a cloudFile attachment’s content is stored at. Present for cloudFile attachments (see messages.AttachmentType), whose content is not part of the message.

  • type MessageAttachment.linkUrl — The remote location the attachment’s content is linked to. Present for linked attachments (see messages.AttachmentType), whose content is not part of the message and can be fetched from this url.

  • type MessageAttachment.type — The type of this attachment.

  • type NewMessageDetails — Details of a message to be sent.

messengerSettings

oauthProvider

tabs

api tabs