PopSettings
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
AccessWindow
列舉 |
accessWindowUnspecified |
未指定範圍。 |
disabled |
表示無法透過 POP 存取任何郵件。 |
fromNowOn |
表示在某個過去時間點之後收到的未擷取訊息可透過 POP 存取。 |
allMail |
表示可透過 POP 存取所有未擷取的郵件。 |
Disposition
指定 Gmail 在透過 POP 擷取郵件後,應如何處理郵件。
列舉 |
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,["# PopSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [AccessWindow](#AccessWindow)\n- [Disposition](#Disposition)\n\nPOP settings for an account.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"accessWindow\": enum (/workspace/gmail/api/reference/rest/v1/PopSettings#AccessWindow), \"disposition\": enum (/workspace/gmail/api/reference/rest/v1/PopSettings#Disposition) } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `accessWindow` | `enum (`[AccessWindow](/workspace/gmail/api/reference/rest/v1/PopSettings#AccessWindow)`)` The range of messages which are accessible via POP. |\n| `disposition` | `enum (`[Disposition](/workspace/gmail/api/reference/rest/v1/PopSettings#Disposition)`)` The action that will be executed on a message after it has been fetched via POP. |\n\nAccessWindow\n------------\n\nA range of messages that are accessible via POP.\n\n| Enums ||\n|---------------------------|--------------------------------------------------------------------------------------------------|\n| `accessWindowUnspecified` | Unspecified range. |\n| `disabled` | Indicates that no messages are accessible via POP. |\n| `fromNowOn` | Indicates that unfetched messages received after some past point in time are accessible via POP. |\n| `allMail` | Indicates that all unfetched messages are accessible via POP. |\n\nDisposition\n-----------\n\nSpecifies what Gmail should do with a message after it has been fetched via POP.\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. |"]]