mark_read
Mark specific emails as read in an IMAP mailbox to manage unread message counts and organize email workflows.
Instructions
Mark emails as read
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | Email UIDs | |
| mailbox | No | Mailbox name (default: current) |
Implementation Reference
- src/imap_mcp/imap_client.py:619-625 (handler)The implementation of the mark_read tool in the ImapClientWrapper class.
def mark_read(self, uids: list[int], mailbox: Optional[str] = None) -> bool: """Mark emails as read.""" self._ensure_connected() if mailbox: self.select_mailbox(mailbox) self.client.add_flags(uids, [b"\\Seen"]) return True - src/imap_mcp/server.py:586-587 (registration)The registration of the mark_read tool in the MCP server handler.
elif name == "mark_read": return imap_client.mark_read(