Puoi controllare l'accesso POP con la proprietà accessWindow. La proprietà non
solo determina se POP è attivato o meno, ma anche quali messaggi possono essere
recuperati.
Valore
Effetto
disabled
Nessun accesso POP
allMail
Tutti i messaggi sono disponibili
fromNowOn
Sono disponibili solo i nuovi messaggi
Disposizione dei messaggi
Puoi configurare la disposizione dei messaggi recuperati tramite POP con la proprietà disposition.
Valore
Effetto
archive
Spostare i messaggi fuori dalla posta in arrivo
leaveInInbox
Non fare nulla, lascia i messaggi da leggere nella posta in arrivo
markRead
Contrassegnare i messaggi come letti
trash
Sposta il messaggio nel cestino
IMAP
Attivazione e disattivazione dell'accesso
Puoi controllare l'accesso IMAP impostando la proprietà enabled su true
o false per attivare o disattivare l'accesso, rispettivamente.
Disposizione del messaggio
Per impostare la disposizione per i messaggi eliminati, utilizza la proprietà expungeBehavior.
Valore
Effetto
archive
Spostare i messaggi fuori dalla posta in arrivo
deleteForever
Eliminare definitivamente il messaggio
trash
Sposta il messaggio nel cestino
Inoltre, se la proprietà autoExpunge è impostata su true queste azioni
vengono eseguite immediatamente quando il messaggio viene eliminato tramite IMAP. In caso contrario,
i messaggi vengono lasciati fino a quando non vengono richiesti esplicitamente dal client IMAP.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-08-01 UTC."],[],[],null,["# Managing POP and IMAP\n\nYou can use [Settings](/workspace/gmail/api/reference/rest/v1/users.settings) to configure\nthe behavior of Gmail when accessed via the POP and IMAP protocols.\n\nFor information on how to\n[getPop](/workspace/gmail/api/reference/rest/v1/users.settings/getPop),\n[updatePop](/workspace/gmail/api/reference/rest/v1/users.settings/updatePop),\n[getImap](/workspace/gmail/api/reference/rest/v1/users.settings/getImap),\nor [updateImap](/workspace/gmail/api/reference/rest/v1/users.settings/updateImap), see\nthe [Settings reference](/workspace/gmail/api/reference/rest/v1/users.settings).\n\nPOP\n---\n\n### Enabling and disabling access\n\nYou can control POP access with the `accessWindow` property. The property not\nonly determines whether or not POP is enabled, but also which messages may be\nretrieved.\n\n| Value | Effect |\n|-------------|---------------------------------|\n| `disabled` | No POP access |\n| `allMail` | All messages are available |\n| `fromNowOn` | Only new messages are available |\n\n### Message disposition\n\nYou can configure the disposition of messages retrieved via POP with\nthe `disposition` property.\n\n| Value | Effect |\n|----------------|------------------------------------------------|\n| `archive` | Move messages out of the inbox |\n| `leaveInInbox` | Do nothing, leave messages unread in the inbox |\n| `markRead` | Mark the messages as read |\n| `trash` | Moves the message to the trash |\n\nIMAP\n----\n\n### Enabling and disabling access\n\nYou can control IMAP access by setting the `enabled` property to `true`\nor `false`, to enable or disable access respectively.\n\n### Message Disposition\n\nTo set the disposition for deleted messages, use the `expungeBehavior` property.\n\n| Value | Effect |\n|-----------------|--------------------------------|\n| `archive` | Move messages out of the inbox |\n| `deleteForever` | Permanently delete the message |\n| `trash` | Moves the message to the trash |\n\nAdditionally, if the `autoExpunge` property is set to `true` these actions\nare performed immediately when the message is deleted via IMAP. Otherwise\nmessages are left until explicitly requested from the IMAP client."]]