ImapSettings
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ייצוג ב-JSON |
{
"enabled": boolean,
"autoExpunge": boolean,
"expungeBehavior": enum (ExpungeBehavior ),
"maxFolderSize": integer
} |
שדות |
enabled |
boolean
אם ה-IMAP מופעל בחשבון.
|
autoExpunge |
boolean
אם הערך הזה יהיה True, Gmail ימחק הודעה באופן מיידי אחרי שהיא תסומן כ'נמחקה' ב-IMAP. אחרת, Gmail ימתין לעדכון מהלקוח לפני שימחק הודעות שסומנו כמחקוות.
|
expungeBehavior |
enum (ExpungeBehavior )
הפעולה שתתבצע בהודעה כשהיא תסומן כ'נמחקה' ותימחק מהתיקייה האחרונה שמוצגת ב-IMAP.
|
maxFolderSize |
integer
הגבלה אופציונלית על מספר ההודעות שיכולות להופיע בתיקיית IMAP. הערכים החוקיים הם 0, 1,000, 2,000, 5,000 או 10,000. ערך אפס מתפרש כמשמעות של אין מגבלה.
|
ExpungeBehavior
טיפוסים בני מנייה (enum) |
expungeBehaviorUnspecified |
התנהגות לא צוינה. |
archive |
להעביר לארכיון הודעות שסומנו כהודעות שנמחקו. |
trash |
העברת הודעות שסומנו כ'נמחקו' לאשפה. |
deleteForever |
למחוק באופן מיידי ולתמיד הודעות שסומנו כ'נמחקו'. לא ניתן לשחזר את ההודעות שנמחקו. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 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. |"]]