Install
openclaw skills install postManage IMAP email with the Post CLI and local daemon. Use when reading, searching, fetching, drafting, replying, reply-all, moving, archiving, trashing, exporting, or downloading attachments from email accounts configured in Post. Also use when setting up Post credentials, starting the daemon, or restricting agents to specific mail servers with scoped Post API keys.
openclaw skills install postUse the post CLI for email tasks and postd for the background daemon.
SETUP.md for first-time install, keychain credentials, daemon setup, and scoped API keys.references/common-tasks.md for concrete workflows and reply recipes.INBOX, pass --reply-mailbox <mailbox> when replying.--json when the result will be parsed or reused in a later step.--token <token> for one-off commands or set POST_API_KEY only in that agent’s environment.post draft --replying-to <uid> for threaded replies. This auto-derives from, to, and subject, and sets In-Reply-To / References.--body to create a Mail-style reply draft with quoted original content ready for inline editing.--reply-all only when you really want all original recipients copied.post servers
post folders --server <server>
post status --server <server> --mailbox INBOX
post list --server <server> --mailbox INBOX --limit 20
post search --server <server> --from "someone@example.com" --since 2026-03-01
post fetch <uid> --server <server> --mailbox INBOX
post fetch <uid> --server <server> --mailbox INBOX --json
# New draft
post draft --server <server> --from me@example.com --to you@example.com \
--subject "Hello" --body reply.md
# Threaded reply with body
post draft --server <server> --replying-to <uid> --body reply.md
# Threaded reply, reply-all
post draft --server <server> --replying-to <uid> --reply-all --body reply.md
# Threaded reply for inline editing in Mail.app
post draft --server <server> --replying-to <uid>
# Reply to a message outside INBOX
post draft --server <server> --replying-to <uid> --reply-mailbox Archive --body reply.md
post attachment <uid> --server <server> --mailbox INBOX --output /tmp/mail
post pdf <uid> --server <server> --mailbox INBOX --output /tmp/
post eml <uid> --server <server> --mailbox INBOX --output /tmp/
post move <uids> Archive --server <server> --mailbox INBOX
post archive <uids> --server <server> --mailbox INBOX
post trash <uids> --server <server> --mailbox INBOX
post junk <uids> --server <server> --mailbox INBOX
For real replies, prefer one of these two modes:
Compose in Markdown first
.md file with your replypost draft --replying-to <uid> --body reply.mdCreate a native Mail-style draft
post draft --replying-to <uid>For multi-question emails, fetch the message first, identify each question, and write an interleaved Markdown reply using blockquotes. See references/common-tasks.md for a full example.
Use per-agent API keys instead of sharing a full-access environment:
post api-key create --servers work
post api-key create --servers personal
Then either:
post servers --token <token>
or set only that agent’s environment:
export POST_API_KEY=<token>
Details and setup examples live in SETUP.md.