imap_update_account
Modify an existing Viettel VMail account's password, friendly name, Sent folder, or default BCC without deleting and re-adding it. Host and SMTP fields are only required if Viettel changes server settings.
Instructions
Update an existing VMail account (password, name, Sent folder, default BCC, …) without removing and re-adding it. The host/port/TLS/SMTP fields are only needed if Viettel changes the VMail server settings — new accounts get them automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tls | No | Use TLS for IMAP | |
| host | No | IMAP host. Must be a *.viettel.vn hostname; only needed if Viettel changes the VMail server. | |
| name | No | New friendly name | |
| port | No | IMAP port | |
| user | No | IMAP username | |
| No | Email address (From: header) | ||
| password | No | New password | |
| smtpHost | No | SMTP hostname. Must be a *.viettel.vn hostname; only needed if Viettel changes the VMail server. | |
| smtpPort | No | SMTP port (465 for SMTPS, 587 for STARTTLS) | |
| smtpUser | No | SMTP username (if different from IMAP user) | |
| accountId | Yes | ID of the account to update | |
| defaultBcc | No | Optional BCC address(es) applied automatically to every outbound message for this account. Pass an empty string to clear | |
| saveToSent | No | Save sent emails to the Sent folder | |
| sentFolder | No | Explicit Sent-folder name for saving sent-mail copies (e.g. "Gesendet"). Overrides auto-detection; pass an empty string to clear the override and re-enable auto-detection. Check names with imap_list_folders | |
| smtpSecure | No | Use implicit TLS (SMTPS). Port 587/25 always use STARTTLS regardless | |
| smtpPassword | No | SMTP password (if different from IMAP password) | |
| allowStartTLS | No | When tls is false, set to false to also disable imapflow's opportunistic STARTTLS upgrade (see imap_add_account). Defaults to true. |