PopSettings
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
AccessWindow
枚举 |
accessWindowUnspecified |
未指定范围。 |
disabled |
表示无法通过 POP 访问任何邮件。 |
fromNowOn |
表示在某个过去时间点之后收到的未提取的邮件可通过 POP 访问。 |
allMail |
表示所有未提取的邮件都可以通过 POP 访问。 |
Disposition
指定 Gmail 在通过 POP 提取邮件后应对邮件执行的操作。
枚举 |
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,["# 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. |"]]