AutoForwarding
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"enabled": boolean,
"emailAddress": string,
"disposition": enum (Disposition )
} |
欄位 |
enabled |
boolean
是否將所有收到的郵件自動轉寄至其他地址。
|
emailAddress |
string
所有傳入郵件都會轉寄至這個電子郵件地址。這個電子郵件地址必須是轉寄地址的已驗證成員。
|
disposition |
enum (Disposition )
轉寄訊息後應保留的狀態。
|
Disposition
列舉 |
dispositionUnspecified |
未指定處置。 |
leaveInInbox |
請在 INBOX 中留下訊息。 |
archive |
封存郵件。 |
trash |
將郵件移至 TRASH 。 |
markRead |
將訊息留在 INBOX 中,並標示為已讀。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]