Home/Skills/Lifestyle & Home/Apple Mail Search Safe (fruitmail)
Gustavo Madeira Santana

Apple Mail Search Safe (fruitmail)

15 versions
Gustavo Madeira Santana·Feb 18, 2026

Summary

TL;DR: Search your Apple Mail on macOS by sender, subject, date, or full body text. Returns metadata and message content.

Apple Mail Search Safe (fruitmail) is an OpenClaw skill that 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,.

Created by Gustavo Madeira Santana, this skill has been downloaded 3k+ times on ClawHub. Install it with one command and your AI agent gains these capabilities right away.

Use cases

  • Finding a specific receipt or confirmation email by searching the sender and date range
  • Pulling up all emails from a client in the last month to review a conversation thread
  • Searching email body text for a tracking number or reference code you can't remember the sender of
  • Locating flagged or unread emails from a particular mailbox to catch up on what you missed

Installation

Run this command to install the skill on your OpenClaw agent:

Install with OpenClaw
npx clawhub@latest install apple-mail-search-safe
Downloads
3.4k
Active installs
7
Stars
3
Updated
Feb 18, 2026

Security scan

Security scan
VirusTotalBenign
View report
OpenClawBenignhigh confidence

The skill's name, install steps, required binary, and runtime instructions are internally consistent: it installs a CLI (fruitmail) via npm and uses that CLI to read Apple Mail's local index and AppleScript for message bodies.

Purpose & Capability
Instruction Scope
Install Mechanism
Credentials
Persistence & Privilege

SKILL.md

SKILL.md
---
name: apple-mail-search
description: "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. "
homepage: https://clawdhub.com/gumadeiras/apple-mail-search-safe
repository: https://github.com/gumadeiras/fruitmail-cli
metadata: {"clawdbot":{"emoji":"📧","requires":{"bins":["fruitmail"]},"install":[{"id":"node","kind":"node","package":"apple-mail-search-cli","bins":["fruitmail"],"label":"Install fruitmail CLI (npm)"}]}}
---

# Fruitmail (Fast & Safe)

Fast SQLite-based search for Apple Mail.app with full body content support.

## Installation

```bash
npm install -g apple-mail-search-cli
```

## Usage

```bash
# Complex search
fruitmail search --subject "invoice" --days 30 --unread

# Search by sender
fruitmail sender "@amazon.com"

# List unread emails
fruitmail unread

# Read full email body (supports --json)
fruitmail body 94695

# Open in Mail.app
fruitmail open 94695

# Database stats
fruitmail stats
```

## Commands

| Command | Description |
|---------|-------------|
| `search` | Complex search with filters |
| `sender <query>` | Search by sender email |
| `unread` | List unread emails |
| `body <id>` | Read full email body (AppleScript) |
| `open <id>` | Open email in Mail.app |
| `stats` | Database statistics |

## Search Options

```
--subject <text>   Search subject lines
--days <n>         Last N days
--unread           Only unread emails
--limit <n>        Max results (default: 20)
--json             Output as JSON
--copy             Copy DB before query (safest mode)
```

## Examples

```bash
# Find bank statements from last month
fruitmail search --subject "statement" --days 30

# Get unread emails as JSON
fruitmail unread --json | jq '.[] | .subject'

# Find emails from Amazon
fruitmail sender "@amazon.com" --limit 50
```

## Performance

| Method | Time for 130k emails |
|--------|---------------------|
| AppleScript (full iteration) | 8+ minutes |
| SQLite (this tool) | **~50ms** |

## Technical Details

- **Database:** `~/Library/Mail/V{9,10,11}/MailData/Envelope Index`
- **Query method:** SQLite (read-only) + AppleScript (body content)
- **Safety:** Read-only mode prevents modification; optional `--copy` mode available

## Notes

- **macOS only** — queries Apple Mail.app's local database
- **Read-only** — can search/read but cannot compose/send
- **To send emails:** Use the `himalaya` skill (IMAP/SMTP)

## Source

https://github.com/gumadeiras/fruitmail-cli

Version history

v5.0.4Latest
Feb 18, 2026

Set display title to Apple Mail Search Safe (fruitmail).

v5.0.3
Feb 18, 2026

Update description text only.

v5.0.2
Feb 18, 2026

Set clean display title and keep existing description.

v5.0.1
Feb 18, 2026

Publish skill package with SKILL.md only.

v5.0.0
Feb 18, 2026

Update SKILL.md and release 5.0.0

v1.1.0
Feb 18, 2026

Update links and metadata for fruitmail-cli repo and latest CLI behavior fixes.

v4.0.0
Jan 26, 2026

Major version bump - fruitmail rewrite

v2.0.1
Jan 26, 2026

Remove old script, skill is just SKILL.md now

v2.0.0
Jan 26, 2026

Rewrite: now fruitmail CLI, npm install support

v2026.1.7
Jan 15, 2026

- Updated installation instructions for clarity and simplicity; now recommends creating a symlink and using `clawdhub update` for updates. - Removed previous download, clone, and copy to PATH installation methods, focusing only on the symlink approach. - All usage, options, and examples sections remain unchanged. - No changes made to actual search features or technical details.

v2026.1.6
Jan 15, 2026

- Initial release of apple-mail-search-safe. - Added core mail search script at scripts/mail-search.sh. - Provides fast, safe Apple Mail search with body content support.

v2026.1.5
Jan 15, 2026

- Removed the README.md file from the project. - All documentation and usage instructions are now contained solely within SKILL.md.

v2026.1.4
Jan 15, 2026

Updated repo link to apple-mail-search-cli

v2026.1.3
Jan 15, 2026

Release v2026.1.3

v3.0.0
Jan 15, 2026

Script hosted on GitHub. Added nice README. Updated installation instructions.

Frequently asked questions

No. Everything runs locally on your Mac. It queries Apple Mail directly and no email data leaves your machine.

Installation method

Send this prompt to your agent to install the skill

npx clawhub@latest install apple-mail-search-safe
Download ZIP

Skill info

Versionv5.0.4
AuthorGustavo Madeira Santana
UpdatedFeb 18, 2026

Files

SKILL.md2.5 KB

Run OpenClaw in the cloud

Deploy in seconds. Skills pre-installed.

See plans

Skill data sourced from ClawHub