AutoForwarding
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"enabled": boolean,
"emailAddress": string,
"disposition": enum (Disposition )
} |
字段 |
enabled |
boolean
是否将所有收到的邮件自动转发到其他地址。
|
emailAddress |
string
用于转发所有传入邮件的电子邮件地址。此电子邮件地址必须是转发地址的已验证成员。
|
disposition |
enum (Disposition )
邮件转发后应保持的状态。
|
Disposition
指定 Gmail 应在自动转发邮件后对其执行的操作。
枚举 |
dispositionUnspecified |
未指定处置方式。 |
leaveInInbox |
将消息留在 INBOX 中。 |
archive |
将邮件归档。 |
trash |
将消息移至 TRASH 。 |
markRead |
将消息保留在 INBOX 中,并将其标记为已读。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# AutoForwarding\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Disposition](#Disposition)\n\nAuto-forwarding settings for an account.\n\n| JSON representation |\n|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"enabled\": boolean, \"emailAddress\": string, \"disposition\": enum (/workspace/gmail/api/reference/rest/v1/AutoForwarding#Disposition) } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `enabled` | `boolean` Whether all incoming mail is automatically forwarded to another address. |\n| `emailAddress` | `string` Email address to which all incoming messages are forwarded. This email address must be a verified member of the forwarding addresses. |\n| `disposition` | `enum (`[Disposition](/workspace/gmail/api/reference/rest/v1/AutoForwarding#Disposition)`)` The state that a message should be left in after it has been forwarded. |\n\nDisposition\n-----------\n\nSpecifies what Gmail should do with a message after it has been automatically forwarded.\n\n| Enums ||\n|--------------------------|-------------------------------------------------------|\n| `dispositionUnspecified` | Unspecified disposition. |\n| `leaveInInbox` | Leave the message in the `INBOX`. |\n| `archive` | Archive the message. |\n| `trash` | Move the message to the `TRASH`. |\n| `markRead` | Leave the message in the `INBOX` and mark it as read. |"]]