Fastmail JMAP Email Skill for Openclaw

Give your AI agent full email superpowers to read, search, and send messages using Fastmail JMAP.

theagentwire
v1.3.1
Mar 8, 2026
2
1.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install fastmail-jmap

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install fastmail-jmap using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Fastmail JMAP Email Skill?

This skill provides a lightweight, zero-dependency Python interface for AI agents to interact with email via the Fastmail JMAP API. Unlike traditional IMAP or complex OAuth-based Gmail integrations, it uses a simple API token to enable full mailbox control. By leveraging Openclaw Skills, developers can grant their agents the ability to process invoices, respond to clients, and manage folders without the overhead of external libraries. It is designed to be stateless and fast, making it the perfect choice for headless automation.

Built with a focus on simplicity, the script uses only the Python standard library, ensuring compatibility across various environments. Whether you are building a personal assistant or an automated customer service agent, this skill bridges the gap between LLM logic and your inbox.

Fastmail JMAP Email Skill Use Cases

  • Automated inbox monitoring for specific keywords or urgent requests.
  • Searching and summarizing past correspondence to provide context for AI tasks.
  • Sending automated reports, notifications, or replies directly from the agent.
  • Organizing mailboxes by moving emails to specific folders like Invoices or Archive.
  • Trashing spam or irrelevant notifications to keep the inbox clean using Openclaw Skills logic.

How Fastmail JMAP Email Skill Works

  1. The agent authenticates using a Fastmail API token passed via environment variables.
  2. It uses the JMAP protocol to perform stateless HTTP JSON requests to Fastmail servers.
  3. For reading, it queries the mailbox, fetches email metadata, and optionally retrieves the full text body.
  4. For actions like moving or trashing, it sends a set request to update the email's location or flags.
  5. For sending, it utilizes the EmailSubmission method to dispatch messages via an authorized identity.

Fastmail JMAP Email Skill Setup

To get started, obtain a Fastmail API token with Email (read/write) and Email Submission (send) scopes from your account settings. Then, configure your environment:

export FASTMAIL_TOKEN="fmu1-your-token-here"
# Optional: Override sender identity
export FASTMAIL_IDENTITY="[email protected]"

Verify the connection by running the unread command:

python3 scripts/fastmail.py unread

Fastmail JMAP Email Skill Data Schema & Taxonomy

The skill interacts with the standard JMAP data structures. All IDs are opaque strings used for cross-referencing between commands. This structure is highly compatible with the way Openclaw Skills handle metadata.

Entity Description
Mailbox Represents folders and their associated message counts.
Email Contains metadata including ID, Subject, From, Date, and Body text.
Identity Validated sender addresses used for sending mail.
Keywords Flags like $seen or $draft used for status tracking.

Fastmail JMAP Email Skill Advanced Features

  • Batch request support allows multiple operations in a single API call for high efficiency.
  • Global full-text search capability with filters for sender, date ranges, and mailbox folders.
  • Stateless architecture ensures no local database sync is required, making it ideal for ephemeral Openclaw Skills environments.
  • Custom domain support enables agents to send mail from professional addresses (e.g., bot@yourdomain.com).
  • Native integration with 1Password for secure secret injection during runtime.

SKILL.md


Loading

Related Openclaw Skills

Featured*