Automations ·
Inbox skill: reading and drafting emails via Proton Bridge
An /inbox skill that fetches unread mail, searches the archive and saves drafts to Proton Drafts. It runs on our own machine through Proton Bridge.
The problem
Our AI system could touch almost every part of our workflow except mail. No inbox access means no context during prep, no easy answer to "what did X write about Y", and manual copy-pasting whenever we want a draft written.
What we built
An /inbox skill that works via Proton Bridge IMAP (local on port 1143). No external API, no cloud tokens, just our machine talking to our own Bridge:
- fetch_inbox.py: unread messages with preview, sender and date
- search_inbox.py: search by sender, date, or keywords in subject/body
- save_draft.py: drafts with the Mission Relearn signature, written into Proton Drafts ready for review and sending
- Integration into /morning-briefing: step 2 surfaces new mail in the morning briefing, so we start the day with context
What tripped us up
- Proton Bridge uses its own random password, not your login. Find it in Bridge.app under mailbox details
- IMAP without quotes fails on mailbox names with spaces: 'All Mail' must be quoted as '"All Mail"'
- Multi-word SUBJECT searches parse each token as a separate key. One dominant term plus post-filtering works better
- Open Sans at 11px, not 11pt: Mail/Proton dropdowns use pixels, and 11pt renders too large
All baked into save_draft.py: signature, font size and HTML wrapper are always consistent, regardless of where the draft came from.
What we learned
- Working locally via Bridge is wonderfully privacy-safe, but you pay for it in quirks
- Writing into Drafts (rather than sending directly) is exactly the right slice of work for AI: we stay the humans who hit send
- Even simple inbox access changes the morning rhythm. We see context for our meetings before we start
Result
Our morning briefing now contains inbox context. Drafts are prepared locally and wait in Drafts. It saves us 20-30 minutes of mail work a day, with zero data leaving our own environment.
Want something like this for your own team?
On the Build Track, we rebuild one work process with your team in 90 days, using the tools you already have.
Prefer to email first? annet@missionrelearn.com