mark_mails_unread
Change selected emails back to unread status in your Naver Mail account to mark messages for later review or follow-up.
Instructions
메일을 읽지 않음 상태로 변경
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mail_uids | Yes | 읽지 않음 처리할 메일들의 UID 목록 |
Implementation Reference
- service/mail_service.py:122-127 (handler)The core logic that marks emails as unread by flagging them in the mailbox.
def mark_as_unread(self, mail_uids: List[str]) -> None: """ 메일을 읽지 않음 상태로 변경합니다. """ with self._get_mailbox_client() as mailbox: mailbox.flag(mail_uids, '\\Seen', False) - server.py:224-237 (registration)MCP tool definition/registration for mark_mails_unread.
Tool( name="mark_mails_unread", description="메일을 읽지 않음 상태로 변경", inputSchema={ "type": "object", "properties": { "mail_uids": { "type": "array", "items": {"type": "string"}, "description": "읽지 않음 처리할 메일들의 UID 목록" } }, "required": ["mail_uids"], } - server.py:466-473 (handler)The handler block in server.py that processes the mark_mails_unread tool request.
elif name == "mark_mails_unread": mail_uids = args.get("mail_uids", []) if not mail_uids: return [TextContent(type="text", text="읽지 않음 처리할 메일 UID 목록이 필요합니다.")] mail_service.mark_as_unread(mail_uids) return [TextContent(type="text", text=f"{len(mail_uids)}개의 메일이 읽지 않음 상태로 변경되었습니다.")]