The Address Books sample extension uses this API.
The permission addressBooks is required to use
Gets all the contacts in the address book with the id
Gets all contacts matching
searchString in the address book with the id
Gets a single contact.
create(parentId, [id], properties)¶
Adds a new contact to the address book with the id
Edits the properties of a contact. To remove a property, specify it as
Removes a contact from the address book. The contact is also removed from any mailing lists it is a member of.
Fired when a contact is created.
Fired when a contact is changed.
Fired when a contact is removed from an address book.
A node representing a contact in an address book.
idof the parent object.
A set of properties for a particular contact. For a complete list of properties that Thunderbird uses, see https://hg.mozilla.org/comm-central/file/tip/mailnews/addrbook/public/nsIAbCard.idl
It is also possible to store custom properties. The custom property name however may only use a to z, A to Z, 1 to 9 and underscores.