# PopSettings

- [JSON representation](https://developers.google.com/workspace/gmail/api/reference/rest/v1/PopSettings#SCHEMA_REPRESENTATION)
- [AccessWindow](https://developers.google.com/workspace/gmail/api/reference/rest/v1/PopSettings#AccessWindow)
- [Disposition](https://developers.google.com/workspace/gmail/api/reference/rest/v1/PopSettings#Disposition)

POP settings for an account.

| JSON representation |
|---|
| ``` { "accessWindow": enum (`https://developers.google.com/workspace/gmail/api/reference/rest/v1/PopSettings#AccessWindow`), "disposition": enum (`https://developers.google.com/workspace/gmail/api/reference/rest/v1/PopSettings#Disposition`) } ``` |

| Fields ||
|---|---|
| `accessWindow` | ``enum (`https://developers.google.com/workspace/gmail/api/reference/rest/v1/PopSettings#AccessWindow`)`` The range of messages which are accessible via POP. |
| `disposition` | ``enum (`https://developers.google.com/workspace/gmail/api/reference/rest/v1/PopSettings#Disposition`)`` The action that will be executed on a message after it has been fetched via POP. |

## AccessWindow

A range of messages that are accessible via POP.

| Enums ||
|---|---|
| `accessWindowUnspecified` | Unspecified range. |
| `disabled` | Indicates that no messages are accessible via POP. |
| `fromNowOn` | Indicates that unfetched messages received after some past point in time are accessible via POP. |
| `allMail` | Indicates that all unfetched messages are accessible via POP. |

## Disposition

Specifies what Gmail should do with a message after it has been fetched via POP.

| Enums ||
|---|---|
| `dispositionUnspecified` | Unspecified disposition. |
| `leaveInInbox` | Leave the message in the `INBOX`. |
| `archive` | Archive the message. |
| `trash` | Move the message to the `TRASH`. |
| `markRead` | Leave the message in the `INBOX` and mark it as read. |