# 概览

Canonical URL: https://developers.iagenify.com/zh/sdk/ref/mailbox/
Language: zh

一个地址:信息、别名、图片和签名以及发送的信息。

Status: 4 methods · messages and aliases · quota is the account's

| 成员 | 功能 |
| --- | --- |
| [发送(选项)](/zh/sdk/ref/mailbox/send) | 发自此地址 。 |
| [更新(更改)](/zh/sdk/ref/mailbox/update) | 姓名, 全部, 图片, 签名。 |
| [向前(地址)](/zh/sdk/ref/mailbox/forward) | 其它处复制,最多五份。 |
| [删除( m)](/zh/sdk/ref/mailbox/remove) | 删除。 |
| [电文](/zh/sdk/ref/mailbox/messages/list) | `list` · `get` · `update` · `remove` · `search`. |
| [别别别别](/zh/sdk/ref/mailbox/aliases/list) | `list` · `add` · `remove`. |

```javascript
const box = await api.mail.get("hello@example.com");

const { messages, unreadCount } = await box.messages.list({ folder: "inbox", unread: true });
await box.send({ to: "someone@example.net", subject: "Hi", text: "…" });
```

## 随它携带的 {#properties}

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `address · local · host` | string |  | 地址和地址的两半 |
| `name` | string |  | 显示名称 。 |
| `avatar · avatarSource` | string|null |  | 照片来自: `mailbox`, `account`或什么都没有。 |
| `signature` | object|null |  | `{ html, image }`,添加到发送中。 |
| `source` | string |  | `iagenify` 或 `imap`. |
| `usedBytes · quotaBytes` | integer |  | 账户的物品储存 持有的物品 |
| `aliasList · forwardTo` | string[] |  | 地址是这里的陆地 副本也寄过去 |
| `catchAll` | boolean |  | 是否在主机所在的土地上有未知地址 。 |
| `status · lastMessageAt` |  |  | 国家, 和当最后的东西到达。 |

## 图片沿链条 {#picture}

邮箱是自己的,账户是的,然后什么都没有 `avatarSource` 如此一来,一个界面就能提供 使用自己照片 有意义地。

- [send()](/zh/sdk/ref/mailbox/send): 发送中
- [messages.list()](/zh/sdk/ref/mailbox/messages/list): 阅读。
- [update()](/zh/sdk/ref/mailbox/update): 照片和签名

```python
box = api.mail.get("hello@example.com")

page = box.messages.list(folder="inbox", unread=True)
messages, unread_count = page["messages"], page.get("unreadCount")
box.send(to=["someone@example.net"], subject="Hi", text="…")
```
