| Call | Does |
|---|---|
| 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
| Order | Source |
|---|---|
| 1 | The mailbox's own picture, for your own addresses |
| 2 | A contact photo |
| 3 | A logo found on the sender's domain |
| 4 | Nothing — keep initials |
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.