Skip to content
jmap-email logo

JMAP Email Access

jmap-email

Enables JMAP email operations using Node.js and jmap-jam library. Use when working with JMAP email servers, FastMail, Cyrus IMAP, Stalwart Mail Server, or when user mentions email search, reading, sending, or mailbox management.

SKILL.md

Full skill instructions

JMAP Email Access

Access JMAP email servers (FastMail, Cyrus IMAP, Stalwart) using pre-built scripts.

Prerequisites

Environment variables must be set before launching Claude Code:

  • JMAP_SESSION_URL - JMAP server session URL
  • JMAP_BEARER_TOKEN - Authentication bearer token
  • JMAP_ACCOUNT_ID - Account ID (optional, auto-detected)

Available Scripts

Choose the right script:

  • Browse recent emails? → Use list-emails.ts (supports --unread, --flagged, --mailbox, --from, --limit filters)
  • Search by sender? → Use list-emails.ts --from "[email protected]"
  • Search for multiple keywords? → Use search-keywords.ts keyword1 keyword2 ...
  • Get full email content? → Use get-email.ts with email ID
  • View folder structure? → Use list-mailboxes.ts
  • Move emails by ID? → Use move-by-ids.ts --mailbox <name> <id1> <id2> ...
  • Delete emails? → Use delete-emails.ts <id1> <id2> ...

All scripts support --help for detailed usage.

Common Tasks

Browse unread emails

node scripts/​list-emails.ts --unread
node scripts/​list-emails.ts --unread --limit 50

Find emails from specific sender

node scripts/​list-emails.ts --from "[email protected]"
node scripts/​list-emails.ts --from "[email protected]" --unread

Search for receipts or specific content

node scripts/​search-keywords.ts "invoice" "receipt" "order confirmation"
node scripts/​search-keywords.ts --mailbox "Archive" --limit 10 "meeting" "agenda"

Note: Search shows previews only. For full email content, use get-email.ts with the email ID.

Get full email content

node scripts/​get-email.ts <email-id>

Organize emails (classification workflow)

  1. Search for candidates: search-keywords.ts "keyword1" "keyword2"
  2. Review previews and identify relevant email IDs
  3. (Optional) View full content: get-email.ts <email-id>
  4. Move to target mailbox: move-by-ids.ts --mailbox @MailboxName id1 id2 id3

Interactive email triage

Workflow for processing new emails with learning:

  1. Fetch recent emails:

    • Use list-emails.ts --limit 20 to get batch (optionally add --unread or --mailbox "Inbox")
    • Review subject, sender, and preview
  2. Present classification options:

    • Use AskUserQuestion with multiSelect for each email
    • Options should be target mailboxes (Inbox, Archive, @Reference, etc.)
    • Allow user to select destination for each email
  3. Execute moves:

    • Group emails by target mailbox
    • Use move-by-ids.ts --mailbox <name> <id1> <id2> ... for each group
  4. Save routing patterns to memory:

    • Note sender domains and subjects that map to specific mailboxes
    • Record user's classification decisions (e.g., "newsletters from X → Archive")
    • Reference these patterns in future triage sessions
    • Suggest automatic routing rules based on observed patterns

Benefits:

  • Process inbox in batches with interactive guidance
  • Build up routing knowledge over time
  • Suggest classifications based on past decisions
  • Gradually automate common routing patterns

View mailbox structure

node scripts/​list-mailboxes.ts

Output Format

Scripts output compact, human-readable results:

Found 5 email(s) (unread)
================================================================================

⭐ [UNREAD] Meeting tomorrow
From: John Doe <[email protected]>
Date: 1/​15/​2024, 10:30:45 AM
ID: StrgucNsyw-3
Preview: Hi Jane, let's meet at 2pm to discuss the project...
--------------------------------------------------------------------------------

Advanced Usage

For writing custom JMAP operations or understanding the API, see:

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View