archive_email
Move emails to an Archive folder to organize your inbox and manage email storage. Specify email UIDs to archive from any mailbox.
Instructions
Archive emails (move to Archive folder)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uids | Yes | Email UIDs | |
| mailbox | No | Source mailbox (default: current) | |
| archiveFolder | No | Archive folder name (default: Archive) |
Implementation Reference
- src/imap_mcp/imap_client.py:675-682 (handler)Implementation of the archive_email tool, which calls the move_email method.
def archive_email( self, uids: list[int], mailbox: Optional[str] = None, archive_folder: str = "Archive", ) -> bool: """Archive emails (move to Archive folder).""" return self.move_email(uids, archive_folder, mailbox) - src/imap_mcp/server.py:620-621 (registration)Registration and invocation logic for the archive_email tool in the MCP server handler.
elif name == "archive_email": return imap_client.archive_email(