apple-mail-search
Apple Mail search on macOS with fast metadata and full body lookup. Use for finding messages in Mail.app by subject/sender/recipient/date, opening messages, and reading full body text.
Why use this skill?
Search and read Apple Mail messages in milliseconds with the apple-mail-search skill. A fast, read-only, SQLite-powered tool for macOS.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/gumadeiras/apple-mail-search-safeWhat This Skill Does
The apple-mail-search skill, powered by the fruitmail-cli engine, acts as a high-performance bridge between your AI agent and the macOS Apple Mail.app database. By directly querying the SQLite 'Envelope Index' used by Mail.app, this tool circumvents the extreme latency typically associated with AppleScript-based email retrieval. While native AppleScript methods can take over 8 minutes to index 130,000 emails, this tool performs the same operation in approximately 50 milliseconds. It provides robust capabilities for searching subject lines, filtering by sender, isolating unread messages, and retrieving the full raw content of email bodies, all while maintaining a strict read-only security posture.
Installation
To integrate this skill into your environment, ensure you are on a macOS system with Node.js installed. Run the following command in your terminal:
npm install -g apple-mail-search-cli
Once the CLI is available, you can add it to your OpenClaw agent using the installation command: clawhub install openclaw/skills/skills/gumadeiras/apple-mail-search-safe.
Use Cases
This skill is perfect for users who need to organize their inbox without manual navigation. Use it to quickly find historical invoices, locate forgotten shipping confirmations from specific domains, or extract actionable information from long threads. It is particularly effective for developers or power users who need to process high volumes of email data for reporting or archiving purposes without the overhead of the Mail.app GUI.
Example Prompts
- "Find all unread emails from Amazon in the last 7 days and give me the subjects."
- "Search for an email containing 'invoice' from the last month, then show me the full body of the most recent one."
- "List the 10 most recent unread emails and provide them in a JSON format so I can process them in my project dashboard."
Tips & Limitations
- macOS Exclusive: This tool is strictly for local Apple Mail.app databases on macOS. It cannot access web-based email clients or non-macOS mail stores.
- Read-Only: For your safety, the tool cannot send or delete emails. If you require outgoing mail capabilities, please pair this with the
himalayaskill. - Data Safety: The tool performs read-only queries by default. For added security, utilize the
--copyflag, which creates a temporary local copy of the database before running complex search queries to ensure your primary Mail index remains untouched.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-gumadeiras-apple-mail-search-safe": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read
Related Skills
gotrain
MTA system train departures (NYC Subway, LIRR, Metro-North). Use when the user wants train times, schedules, or service alerts for MTA transit. Covers MTA Subway, LIRR, and Metro-North across the greater New York area.
lastfm
Access Last.fm listening history, music stats, and discovery. Query recent tracks, top artists/albums/tracks, loved tracks, similar artists, and global charts.
little-snitch
Control Little Snitch firewall on macOS. View logs, manage profiles and rule groups, monitor network traffic. Use when the user wants to check firewall activity, enable/disable profiles or blocklists, or troubleshoot network connections.
calcurse
A text-based calendar and scheduling application. Use strictly for CLI-based calendar management.
Parcel Package Tracking
Track and add deliveries via Parcel API.