# update()

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

`mailbox.update({ name?, catchAll?, image?, signature? }) → Promise<Mailbox>`

更改显示名称、 全部抓取、 图片或签名。 只碰过所经过的 。

Status: PATCH · image: null returns to the account's · signature is sanitised

```javascript
await box.update({ name: "Support" });
await box.update({ image: { data: bytes, type: "image/png" } });   // its own picture
await box.update({ image: null });                                  // back to the account's
await box.update({ signature: { html: "<p>Support — example.com</p>", image: true } });
await box.update({ signature: null });                              // remove it
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `name` | string |  | 显示名称 。 |
| `catchAll` | boolean |  | 这里的宿主地上未知的地址 。 |
| `image` | object|null |  | `{ data, type }`. `null` 返回到账户照片 - **缩写**. |
| `signature` | object|null |  | `{ html, image }`. `image: true` 内嵌邮箱图片 。 |

## 情况 {#image}

`data` 需要字节、 base64 或完整数据地址。最多两个兆字节,以通常的图像格式。设置 `null` 返回账户的照片,这是明智的默认,而不是空的。

账户照片被复制到账户自己的存储处,而不是从何处发来的——一页不应靠第三方来决定一个圈子,外部任何方面都不得知道客户多久看一次他们的邮件。

## 签名已写入清扫 {#signature}

> **没有脚本、 没有处理器、 没有背景图像**
>
> 签名中的背景图像是客户发送的每条信息中的一种跟踪像素。 HTML 保存时,将降为允许的集合,而不是使用时。

## 图像: 图片如何到达收件人, 真实的为图像如何到达收件人 {#image-in-signature}

它在信件中运行而不是被取走,所以它显示没有“装入远程图像 ” 。 信息中没有任何东西控制收件人客户在发件人姓名旁边画的圆圈—— 签名是您控制的部分。

## 全部目标都有限制 {#catchall}

它只存在于顶点。在子域,它被拒绝,而不是作为设置被存储,所以不适用。

- [send()](/zh/sdk/ref/mailbox/send): 签字使用地点。
- [contacts.save()](/zh/sdk/ref/mail/contacts/save): 记者的照片

```python
box.update(name="Support")
box.update(image={"data": png_bytes, "type": "image/png"})   # its own picture
box.update(image=None)                                        # back to the account's
box.update(signature={"html": "<p>Support — example.com</p>", "image": True})
box.update(signature=None)                                    # remove it
```
