Jeśli ta wartość jest ustawiona na „prawda”, Gmail natychmiast usuwa wiadomość, gdy zostanie ona oznaczona jako usunięta w IMAP. W przeciwnym razie Gmail będzie czekać na aktualizację od klienta, zanim usunie wiadomości oznaczone jako usunięte.
Działanie, które zostanie wykonane w przypadku wiadomości, gdy zostanie ona oznaczona jako usunięta i usunięta z ostatniego widocznego folderu IMAP.
maxFolderSize
integer
Opcjonalny limit liczby wiadomości, które może zawierać folder IMAP. Dozwolone wartości to 0, 1000, 2000, 5000 lub 10000. Wartość 0 oznacza brak limitu.
ExpungeBehavior
Wartości w polu enum
expungeBehaviorUnspecified
Nieokreślone zachowanie.
archive
archiwizować wiadomości oznaczone jako usunięte.
trash
Przenoszenie wiadomości oznaczonych jako usunięte do kosza.
deleteForever
natychmiast i trwało usuwać wiadomości oznaczone jako usunięte. Usuniętej wiadomości nie można przywrócić.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-25 UTC."],[],[],null,["# ImapSettings\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [ExpungeBehavior](#ExpungeBehavior)\n\nIMAP settings for an account.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"enabled\": boolean, \"autoExpunge\": boolean, \"expungeBehavior\": enum (/workspace/gmail/api/reference/rest/v1/ImapSettings#ExpungeBehavior), \"maxFolderSize\": integer } ``` |\n\n| Fields ||\n|-------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `enabled` | `boolean` Whether IMAP is enabled for the account. |\n| `autoExpunge` | `boolean` If this value is true, Gmail will immediately expunge a message when it is marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the client before expunging messages marked as deleted. |\n| `expungeBehavior` | `enum (`[ExpungeBehavior](/workspace/gmail/api/reference/rest/v1/ImapSettings#ExpungeBehavior)`)` The action that will be executed on a message when it is marked as deleted and expunged from the last visible IMAP folder. |\n| `maxFolderSize` | `integer` An optional limit on the number of messages that an IMAP folder may contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted to mean that there is no limit. |\n\nExpungeBehavior\n---------------\n\n| Enums ||\n|------------------------------|-----------------------------------------------------------------------------------------------------------|\n| `expungeBehaviorUnspecified` | Unspecified behavior. |\n| `archive` | Archive messages marked as deleted. |\n| `trash` | Move messages marked as deleted to the trash. |\n| `deleteForever` | Immediately and permanently delete messages marked as deleted. The expunged messages cannot be recovered. |"]]