Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides command-line scripts to read, search, send, reply to, and manage Apple Mail.app messages on macOS.
Use this skill ↓18% 50%+32 ptsof test cases passed
Passed 11 of 22 test cases with the skill, and 4 of 22 without it.
3 of 3 safety checks passed
Not used yet
Interact with Mail.app via AppleScript and SQLite. Run scripts from: cd {baseDir}
| Command | Usage |
|---|---|
| Refresh | scripts/mail-refresh.sh [account] [wait_seconds] |
| List recent | scripts/mail-list.sh [mailbox] [account] [limit] |
| Search | scripts/mail-search.sh "query" [mailbox] [limit] |
| Fast search | scripts/mail-fast-search.sh "query" [limit] |
| Read email | scripts/mail-read.sh <message-id> [message-id...] |
| Delete | scripts/mail-delete.sh <message-id> [message-id...] |
| Mark read | scripts/mail-mark-read.sh <message-id> [message-id...] |
| Mark unread | scripts/mail-mark-unread.sh <message-id> [message-id...] |
| Send | scripts/mail-send.sh "[email protected]" "Subject" "Body" [from-account] [attachment] ¹ |
| Reply | scripts/mail-reply.sh <message-id> "body" [reply-all] |
| List accounts | scripts/mail-accounts.sh |
| List mailboxes | scripts/mail-mailboxes.sh [account] |
Force Mail.app to check for new messages:
scripts/mail-refresh.sh # All accounts, wait up to 10s
scripts/mail-refresh.sh Google # Specific account only
scripts/mail-refresh.sh "" 5 # All accounts, max 5 seconds
scripts/mail-refresh.sh Google 0 # Google account, no wait
Smart sync detection:
Sync complete in 2s (+3 messages)Notes:
mail-list.sh does NOT auto-refresh — call mail-refresh.sh first if you need fresh dataSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.