Skip to main content
Glama
adamzaidi

icloud-mcp

by adamzaidi

move_email

Move an email to a different folder in iCloud Mail to organize your inbox and manage messages efficiently.

Instructions

Move a single email to a different mailbox/folder

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uidYesEmail UID
targetMailboxYesDestination mailbox path
sourceMailboxNoSource mailbox (default INBOX)

Implementation Reference

  • The 'moveEmail' function is implemented in lib/imap.js. It handles moving a single email by UID between mailboxes using the imapflow library.
    export async function moveEmail(uid, targetMailbox, sourceMailbox = 'INBOX', creds = null) {
      const client = createRateLimitedClient(creds);
      await client.connect();
      await client.mailboxOpen(sourceMailbox);
      await client.messageMove(uid, targetMailbox, { uid: true });
      await client.logout();
      return true;
    }

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/adamzaidi/icloud-mcp'

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