No description
| .gitignore | ||
| config.go | ||
| go.mod | ||
| go.sum | ||
| jmap.go | ||
| maildir.go | ||
| main.go | ||
| README.md | ||
mbrts
Real-time mail delivery for aerc via Fastmail's JMAP push API.
Connects to Fastmail's JMAP EventSource stream and delivers new messages directly to a local Maildir the moment they arrive — no polling interval.
How it works
- Authenticates with the Fastmail JMAP API using a Bearer token
- Opens a persistent SSE connection to receive
StateChangeevents - On each email state change, calls
Email/changes+Email/get+Mailbox/getto fetch new messages and their destination folders - Downloads each message as RFC 2822 and delivers it to the correct Maildir folder
- Runs
notmuch newto index the delivery
Setup
Create a Fastmail API token at Settings → Security → API Tokens.
Configure each account in main.go with a passwordCommand — any shell command that writes the token to stdout. Build and run:
CGO_ENABLED=0 go build -o mbrts . && ./mbrts
aerc should be configured with a maildir:// source so it picks up delivered messages immediately via inotify.