Skip to main content
Glama
Soundhannes

IMAP MCP Server

by Soundhannes

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
NameRequiredDescriptionDefault
uidsYesEmail UIDs
mailboxNoSource mailbox (default: current)
archiveFolderNoArchive folder name (default: Archive)

Implementation Reference

  • 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)
  • Registration and invocation logic for the archive_email tool in the MCP server handler.
    elif name == "archive_email":
        return imap_client.archive_email(

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Soundhannes/IMAP-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server