POP 및 IMAP 관리
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
설정을 사용하여 POP 및 IMAP 프로토콜을 통해 액세스할 때 Gmail의 동작을 구성할 수 있습니다.
getPop, updatePop, getImap 또는 updateImap에 관한 자세한 내용은 설정 참조를 참고하세요.
POP
액세스 사용 설정 및 중지
accessWindow
속성을 사용하여 POP 액세스를 제어할 수 있습니다. 이 속성은 POP 사용 설정 여부뿐만 아니라 검색할 수 있는 메시지도 결정합니다.
값 |
효과 |
disabled |
POP 액세스 권한 없음 |
allMail |
모든 메시지를 사용할 수 있음 |
fromNowOn |
새 메시지만 사용 가능 |
메시지 처리
disposition
속성을 사용하여 POP를 통해 검색된 메시지의 처리 방법을 구성할 수 있습니다.
값 |
효과 |
archive |
받은편지함에서 메일 이동하기 |
leaveInInbox |
아무것도 하지 않고 받은편지함에 메일을 읽지 않은 상태로 둡니다. |
markRead |
메일을 읽음으로 표시 |
trash |
메일을 휴지통으로 이동합니다. |
IMAP
액세스 사용 설정 및 중지
enabled
속성을 true
또는 false
로 설정하여 IMAP 액세스를 제어할 수 있습니다.
메시지 처리
삭제된 메일의 처리를 설정하려면 expungeBehavior
속성을 사용하세요.
값 |
효과 |
archive |
받은편지함에서 메일 이동하기 |
deleteForever |
메일 완전히 삭제 |
trash |
메일을 휴지통으로 이동합니다. |
또한 autoExpunge
속성이 true
로 설정된 경우 이러한 작업은 IMAP를 통해 메시지가 삭제될 때 즉시 실행됩니다. 그렇지 않으면 메시지는 IMAP 클라이언트에서 명시적으로 요청될 때까지 남아 있습니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-01(UTC)
[null,null,["최종 업데이트: 2025-08-01(UTC)"],[],[],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."]]