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.
The action that will be executed on a message when it is marked as deleted and expunged from the last visible IMAP folder.
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.
ExpungeBehavior
Enums
expungeBehaviorUnspecified
Unspecified behavior.
archive
Archive messages marked as deleted.
trash
Move messages marked as deleted to the trash.
deleteForever
Immediately and permanently delete messages marked as deleted. The expunged messages cannot be recovered.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-04 UTC."],[[["IMAP settings allow you to control how your Gmail account interacts with IMAP clients, including enabling/disabling IMAP, automatic expunging of deleted messages, and setting folder size limits."],["You can configure the behavior of Gmail when messages are expunged, choosing to archive, trash, or permanently delete them."],["`maxFolderSize` allows you to set limits on the number of messages an IMAP folder can contain, with options for 0 (no limit), 1000, 2000, 5000, or 10000 messages."],["`autoExpunge` determines whether Gmail immediately expunges deleted messages or waits for an update from the client."]]],[]]