Changes in Thunderbird 76¶
Thunderbird 76 introduces the MailIdentity type for interacting with mail identities. Like the rest of the accounts API, it is mostly read-only as we believe that configuration of identities should only happen using the built-in UI.
The MailAccount type now contains a list of identities associated with that account. The default identity is listed first and other identities are in no particular order.
The accounts API now has a setDefaultIdentity(accountId, identityId) function.
The ComposeDetails type now has an
identityIdfield for getting or setting the identity associated with a message being composed.
For consistency with other APIs and with browser WebExtensions (ie. those used in Firefox, etc.), some events that passed a numeric tab ID to listeners now pass an object representing the tab instead. This change is not backwards-compatible.
The affected events are:
accountsReadpermission is now required for all functions that accept a MailFolder argument. The permission was already required to obtain a
MailFolderanyway, so this change should not break extensions.
For extensions with the
addressBookspermission, a new
addressBookManagerobject is available to WebExtensions experiment implementations. The
addressBookManagerprovides the following functions to help you interact with the addressBooks, contacts and mailingLists APIs:
findMailingListByIdto help you find “real” address book objects (
nsIAbDirectory) for the IDs provided by the addressBooks API. Note that there is active development in the address book and these interfaces will be changing in the near term without public announcement.
convertto turn “real” objects back into API-friendly objects.
For more information on these functions see the source code of the addressBooks APIs.