Changelog for Thunderbird 137
The following WebExtension API changes were introduced in Thunderbird 137.
commands
function openShortcutSettings — Open extension shortcuts configuration page.
folders
function query.queryInfo.lastUsed — Date the folder was last used (folder was accessed, user moved or copied messages into the folder or folder received new messages).
function query.queryInfo.lastUsedAsDestination — Date the folder was last used as a destination (user moved or copied messages into the folder).
function query.queryInfo.sort — The sort order of the returned folders. If not specified, folders will be sorted by path. Sorting by name is case-insensitive.
type MailFolderInfo.lastUsedAsDestination — Date the folder was last used as a destination. It is updated every time the user moved or copied messages into the folder. (precision: seconds).
type QueryDateRange — An object defining a range for a date value to be used in queries.
messages
function delete.options.deletePermanently — Whether the message will be deleted permanently, regardless of the account’s deletion behavior settings. A permanently deleted message cannot be restored, even if the action is defined as a user action. Use this with care!
function delete.options.isUserAction — Whether this copy operation should be treated as a user action, for example allowing undo.
messengerSettings
The messengerSettings API allows to access global messenger settings.
setting messageLineLengthLimit — The line length limit for outgoing messages, to comply with requirements from RFC 2822. See description of messengerSettings.messagePlainTextFlowedOutputEnabled. This property is read-only.
setting messagePlainTextFlowedOutputEnabled — Whether long lines in outgoing plain text messages will get soft line breaks ( \n) or hard line breaks (\n), to comply with requirements from RFC 2822. Soft line breaks will be ignored when displayed by the receiving client. When flowed output is enabled, add-ons should not create plain text messages with manually inserted hard or soft line breaks to achieve a certain text width, as that will most probably interfere with the default line break handling and generate ridged text. When flowed output is disabled, add-ons could add hard line breaks to have control over the final message, but any line longer than the maximum line length will still receive additional hard line breaks. See messengerSettings.messageLineLengthLimit. This property is read-only.
messengerUtilities
The messengerUtilities API provides helpful methods for working with messages and emails.