Postmesh syncs mail to local storage and exposes messages through a structured CLI and JSON interface for scripts, tools, and agents.
Connect an email account and keep a local copy of messages, threads, labels, folders, and metadata.
Keep a normalized copy of inbox data on your machine.
Filter by sender, recipient, subject, body text, date, state, folder, and labels.
Use Postmesh from scripts, local tools, and agents without scraping an inbox UI.
Postmesh accepts explicit query parameters from the CLI or a MailQuery JSON
object.
Postmesh does not try to interpret vague instructions. It gives agents a reliable local mail retrieval layer.
"Find unpaid invoices from last month"
Structured filter: dates, sender, query terms
Matching messages as structured JSON
Summarizes, acts, or feeds into tools
Install Postmesh, connect an account, and run a query — all from the terminal.
curl -fsSL https://postmesh.dev/install.sh | sh