← 返回
开发者工具

Apple Mail Search Safe (fruitmail)

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,...
macOS上的Apple Mail搜索功能,支持快速元数据检索和全文搜索。可通过主题、发件人、收件人、日期等条件查找邮件并打开消息。
gumadeiras
开发者工具 clawhub v5.0.5 2 版本 99386.1 Key: 无需
★ 4
Stars
📥 4,939
下载
💾 383
安装
2
版本
#latest

概述

Fruitmail (Fast & Safe)

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

Installation

npm install -g fruitmail

Usage

# 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

CommandDescription
----------------------
searchComplex search with filters
sender Search by sender email
unreadList unread emails
body Read full email body (AppleScript)
open Open email in Mail.app
statsDatabase 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

# 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

MethodTime 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

版本历史

共 2 个版本

  • v5.0.5 当前
    2026-05-21 12:02 安全 安全
  • v5.0.4
    2026-03-28 10:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 920 📥 185,727
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,847
productivity

jq

gumadeiras
{"answer":"命令行JSON处理器,提取、过滤、转换JSON。"}
★ 4 📥 4,588