codewithbehnam/cc-docs/apple-mail
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Search, read, and extract attachments from Apple Mail's local storage. Query emails by sender, recipient, subject, body, date, mailbox, and flags. Read raw RFC822 messages and extract file attachments.
Install
npx vskill@latest install codewithbehnam/cc-docs/apple-mailSKILL.md
Apple Mail Skill
Search, read, and extract attachments from Apple Mail's local storage on macOS.
Tool
apple-mail.sh — a bash script that queries the Apple Mail SQLite envelope index and reads .emlx files from disk. Read-only — it never modifies mail data.
Quick Reference
Search Options
| Flag | Description | |
|---|---|---|
--from <addr> | Sender address substring | |
--to <addr> | Recipient address substring | |
--subject <text> | Subject substring | |
--body <text> | Body/summary text substring | |
--mailbox <name> | Mailbox URL substring (e.g. INBOX, Sent, Trash) | |
--after <YYYY-MM-DD> | Received after date | |
--before <YYYY-MM-DD> | Received before date | |
--unread | Only unread messages | |
--flagged | Only flagged messages | |
--has-attachment | Only messages with attachments | |
--limit <n> | Max results (default: 20) |
Output Format
searchreturns pipe-delimited table with header row:
id|sender|sender_name|subject|received|status|flagged|mailbox|attachments
inforeturns structured metadata sectionsreadoutputs raw RFC822 email to stdoutattachmentprints the temp directory path to stdout, file listing to stderr
Notes
- Message IDs are Apple Mail internal ROWIDs (integers), shown in the
idcolumn .partial.emlxfiles contain headers only (body not downloaded);readwarns about this- Attachments are copied to a temp directory under
/tmp/; clean up when done - The
bodysearch queries thesummariestable (Apple Mail's plaintext preview), not the full email body - Mailbox URLs are percent-encoded (e.g.,
%5BGmail%5D=[Gmail],%20= space) - Deleted messages are excluded from search by default
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/productivity/apple-mail/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/codewithbehnam/cc-docs/apple-mail)