مدیریت POP و IMAP
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
میتوانید از تنظیمات برای پیکربندی رفتار Gmail هنگام دسترسی از طریق پروتکلهای POP و IMAP استفاده کنید.
برای کسب اطلاعات در مورد نحوه دریافت پاپ ، آپدیت پاپ ، getImap یا updateImap ، به مرجع تنظیمات مراجعه کنید.
POP
فعال و غیرفعال کردن دسترسی
شما می توانید دسترسی POP را با ویژگی accessWindow
کنترل کنید. این ویژگی نه تنها فعال بودن یا نبودن POP را تعیین می کند، بلکه مشخص می کند کدام پیام ها می توانند بازیابی شوند.
ارزش | اثر |
---|
disabled | دسترسی POP وجود ندارد |
allMail | همه پیام ها در دسترس هستند |
fromNowOn | فقط پیام های جدید موجود است |
وضعیت پیام
می توانید با ویژگی disposition
وضعیت پیام های بازیابی شده از طریق POP را پیکربندی کنید.
ارزش | اثر |
---|
archive | پیام ها را از صندوق ورودی خارج کنید |
leaveInInbox | هیچ کاری نکنید، پیام ها را خوانده نشده در صندوق ورودی بگذارید |
markRead | پیام ها را به عنوان خوانده شده علامت گذاری کنید |
trash | پیام را به سطل زباله منتقل می کند |
IMAP
فعال و غیرفعال کردن دسترسی
میتوانید دسترسی IMAP را با تنظیم ویژگی enabled
روی true
یا false
، برای فعال یا غیرفعال کردن دسترسی به ترتیب کنترل کنید.
وضعیت پیام
برای تنظیم وضعیت پیام های حذف شده، از ویژگی expungeBehavior
استفاده کنید.
ارزش | اثر |
---|
archive | پیام ها را از صندوق ورودی خارج کنید |
deleteForever | پیام را برای همیشه حذف کنید |
trash | پیام را به سطل زباله منتقل می کند |
علاوه بر این، اگر ویژگی autoExpunge
روی true
تنظیم شده باشد، این اقدامات بلافاصله هنگامی که پیام از طریق IMAP حذف می شود انجام می شود. در غیر این صورت، پیامها تا زمانی که صریحاً از مشتری IMAP درخواست نشود، باقی میمانند.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-30 بهوقت ساعت هماهنگ جهانی."],[],[],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."]]