π¦ ClawHub
by @ivangdavila
Execute email operations with platform-specific optimizations and secure credential handling.
TERMINAL
clawhub install mailπ About This Skill
name: Mail slug: mail version: 1.2.0 description: Execute email operations with platform-specific optimizations and secure credential handling. changelog: Added explicit scope, requirements, and data access documentation metadata: {"clawdbot":{"emoji":"π§","requires":{"bins":["himalaya"]},"os":["darwin","linux"]}}
Requirements
Binaries:
himalaya - IMAP/SMTP CLI (brew install himalaya or cargo install himalaya)osascript - macOS only, built-inCredentials:
~/.config/himalaya/config.tomlData Access
Read-only paths:
~/Library/Mail/V*/MailData/Envelope Index - Apple Mail SQLite database (macOS only)~/Library/Mail/V*/MAILBOX/Messages/ - attachment files (macOS only)Scope
This skill:
Quick Reference
| Topic | File |
|-------|------|
| Apple Mail SQLite queries | apple-mail.md |
| himalaya CLI patterns | himalaya.md |
| Send/reply protocol | sending.md |
Core Rules
1. Platform Detection
2. Apple Mail SQLite
~/Library/Mail/V*/MailData/Envelope\ Indexosascript -e 'tell app "Mail" to check for new mail' - SQLite reads stale data otherwiseWHERE date_received > strftime('%s','now','-7 days')messagesβaddresses on message_id for sender lookup3. himalaya CLI
--output json flag for programmatic parsinghimalaya envelope list -o json (NOT message list)himalaya folder list after server-side folder changes4. Send Protocol
In-Reply-To and References headers or thread breaks5. Credential Management
security add-internet-password -s imap.gmail.com -a user@gmail.com -w 'app-password'6. Thread Intelligence
In-Reply-To chain, not subject matchinghimalaya envelope watch for real-time