Skip to main content
Glama
Soundhannes

IMAP MCP Server

by Soundhannes

add_auto_archive_sender

Automatically archive emails from specific senders or domains by adding them to an auto-archive list. This tool helps organize your inbox by filtering out emails you want archived automatically.

Instructions

Add sender to auto-archive list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
emailYesEmail address or domain to auto-archive
commentNoOptional comment/reason

Implementation Reference

  • The logic that adds an email sender to the auto-archive configuration list and saves the config to disk.
    def add_auto_archive_sender(
        self, email_addr: str, comment: Optional[str] = None
    ) -> bool:
        """Add sender to auto-archive list."""
        sender = AutoArchiveSender(
            email=email_addr,
            comment=comment,
            added_at=datetime.now(),
        )
        self.auto_archive_senders.append(sender)
        self._save_auto_archive_config()
        return True
  • The MCP server handler that dispatches calls to the 'add_auto_archive_sender' tool to the appropriate method in the IMAP client instance.
    elif name == "add_auto_archive_sender":
        return imap_client.add_auto_archive_sender(
            email_addr=args["email"],
            comment=args.get("comment"),
        )

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