Contacts

Overview

The account's address book: a name and a photo for a correspondent. The photo wins over any logo found on the sender's domain.

4 methodsthe photo winsstored on the account
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

CallDoes
list()Every contact.
get(address)One, or null.
save({ address, name, image })Creates or changes one.
remove(address)Deletes one.
await api.mail.contacts.save({
  address: "fedy@example.net",
  name: "Fedy",
  image: { data: bytes, type: "image/jpeg" },
});
api.mail.contacts.save(
    address="fedy@example.net",
    name="Fedy",
    image={"data": jpeg_bytes, "type": "image/jpeg"},
)

A contact photo always wins

OrderSource
1The mailbox's own picture, for your own addresses
2A contact photo
3A logo found on the sender's domain
4Nothing — keep initials
It is the only thing that puts a face next to a person

A domain logo is a company's mark. On a consumer domain it would be the provider's logo — the same picture for fifteen different correspondents, which is a wrong answer rather than a missing one. So nothing is looked up there at all.

Where the bytes go

Into the account's object storage, visible in its listing, counted in its quota, deletable. Nothing is sent to a third party to find out who writes to the customer.

Pictures are resolved at delivery

Not when a message is read — so opening a folder is two reads of our own data, with nothing fetched from outside while someone is looking at their inbox.