# update()

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

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

Ändert den Anzeigenamen, das Catch-All, das Bild oder die Signatur. Nur das, was Sie passieren, wird berührt.

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 |  | Der Anzeigename. |
| `catchAll` | boolean |  | Unbekannte Adressen auf dem Hostland hier. |
| `image` | object|null |  | `{ data, type }`. `null` kehrt auf das Kontofoto zurück — **nicht auf Initialen **. |
| `signature` | object|null |  | `{ html, image }`. `image: true` fügt das Mailboxbild ein. |

## Das Bild {#image}

`data` nimmt Bytes, Base64 oder eine vollständige Datenadresse. Maximal zwei Megabyte, in den üblichen Bildformaten. Die Einstellung `null` kehrt auf das Kontofoto zurück, was eher die sinnvolle Voreinstellung als nichts ist.

Das Kontofoto wird einmal in den eigenen Speicher des Kontos kopiert, anstatt von wo es herkommt, zu machen - eine Seite sollte nicht von einem Dritten für einen Kreis abhängen, und nichts außerhalb sollte lernen, wie oft der Kunde seine Mail liest.

## Die Unterschrift ist auf dem Schreiben gesanisiert {#signature}

> **Kein Skript, kein Handler, keine Hintergrundbilder**
>
> Ein Hintergrundbild in einer Signatur ist ein Tracking-Pixel in jeder Nachricht, die der Kunde sendet. Das HTML wird auf einen zulässigen Satz reduziert, wenn es gespeichert wird, nicht wenn es verwendet wird.

## Bild: wahr ist, wie ein Bild einen Empfänger erreicht {#image-in-signature}

Es reist in die Nachricht anstatt abgeholt zu werden, so zeigt es ohne "Lade entfernte Bilder". Nichts in einer Nachricht steuert den Kreis, den der Client eines Empfängers neben dem Namen des Absenders zeichnet — eine Signatur ist der Teil, den Sie steuern.

## Fang-alles hat eine Grenze {#catchall}

Es existiert nur am Apex. Auf einer Subdomain wird es abgelehnt, anstatt als eine Einstellung gespeichert nichts gilt.

- [send()](/de/sdk/ref/mailbox/send): Wird die Unterschrift verwendet.
- [contacts.save()](/de/sdk/ref/mail/contacts/save): Ein Foto für einen Korrespondenten.

```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
```
