for (const box of await api.mail.list()) {
console.log(box.address, box.usedBytes, "/", box.quotaBytes, box.aliasList.length, "aliases");
}for box in api.mail.list():
print(box.address, box.used_bytes, "/", box.quota_bytes, len(box.alias_list), "aliases")They are ready to use
const [box] = await api.mail.list();
const { messages } = await box.messages.list({ folder: "inbox", limit: 20 });box = api.mail.list()[0]
messages = box.messages.list(folder="inbox", limit=20)["messages"]quotaBytes is the same number on all of them
It is the account's object storage. Three mailboxes do not have three quotas — they share the account's space, along with files and anything a host keeps online.
source says where it lives
| source | Means |
|---|---|
iagenify | A mailbox here. |
imap | One hosted elsewhere, read directly. |
The field exists so a page does not have to change when a mailbox of the second kind appears beside one of the first.
An empty list
Either none has been created, or the plan has none — usage() says which, and a page should show the limit rather than an empty state.