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.
Then connect an account and run a query.
curl -fsSL https://postmesh.dev/install.sh | sh
Postmesh syncs mail locally and exposes it through structured queries.