Nếu giá trị này là đúng, Gmail sẽ xoá ngay một thư khi thư đó được đánh dấu là đã xoá trong IMAP. Nếu không, Gmail sẽ đợi ứng dụng cập nhật trước khi xoá các thư được đánh dấu là đã xoá.
Thao tác sẽ được thực thi trên một thư khi thư đó được đánh dấu là đã xoá và bị xoá khỏi thư mục IMAP hiển thị gần đây nhất.
maxFolderSize
integer
Giới hạn không bắt buộc về số lượng thư mà thư mục IMAP có thể chứa. Các giá trị hợp lệ là 0, 1000, 2000, 5000 hoặc 10.000. Giá trị 0 được hiểu là không có giới hạn.
ExpungeBehavior
Enum
expungeBehaviorUnspecified
Hành vi không xác định.
archive
Thư lưu trữ được đánh dấu là đã xoá.
trash
Di chuyển thư được đánh dấu là đã xoá vào thùng rác.
deleteForever
Xoá vĩnh viễn và ngay lập tức những thư được đánh dấu là đã xoá. Không thể khôi phục các thư đã xoá bỏ.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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. |"]]