Email over IMAP and SMTP, stored locally and readable offline.
My experiment in building an office suite. AI helps with the coding; I document the decisions, tests and limits. Not finished software or for sale. About the experiment →
- Lines of Dart
- ~26.000
- Tests
- 338
- Protocol tests against fake servers
- 60+
- MCP tools
- 6
- As of
- As of Oct 11, 2026
The balance
Email program with its own IMAP, SMTP and MIME stack, local SQLite storage with full-text search and optional AI that only suggests notes and draft text. No server of its own; connections go only to the user's own mail servers.
17 findings from the repository, by kind. Each one is in the logbook with its date and source.
- 7worked41%
- 6limits35%
- 1bugs6%
- 3decisions18%
What worked with AI
On top of that, 3 decisions, each with its date and source in the logbook. All findings in the logbook ↓

Logbook
17 findings from to
- Day 8
Feature comparison: seven P1 gaps
Compared with Apple Mail and Outlook, OAuth, spell check, non-modal composing, folder management, drag and drop of messages, calendar invitations and printing are missing. OAuth has priority because it is what makes Microsoft 365 usable at all.
LimitSource docs/product/funktionsabgleich/mail.mdRedesign modelled on mail apps
On the day of the feature comparison, Mail got a floating glass sidebar, a denser list at 13 pt with two preview lines, and a reading view without cards.
WorkedSource apps/mail@15cd2ffNo lethal trifecta
The research confirms that Mail avoids the risky combination of external content, data access and exfiltration: no sending or network tools, no image display in the AI panel. This is treated as an architectural rule that every extension must follow.
WorkedSource docs/research/ki-2030/mail.mdNo measurements for response times
There are no measurements for cold start, initial sync, search and time to the first AI token; AI notes apply only to the current session and are paid for again on every opening.
LimitSource docs/research/ki-2030/mail.md
- Day 5
MCP server only reads and never sends
The `balane-mail` MCP server opens the storage read-only and only creates drafts as files, which Mail then picks up; there is no sending, deleting or moving. A test checks on every run that no IMAP or SMTP code is imported.
DecisionSource ADR 0009Emails are data, not instructions
Each message goes to the model as its own source block, wrapper tags are neutralised, and recognisable instructions to AI systems are shown in the reading view and not followed. The AI can only suggest the text and subject of a draft; according to the documentation, the pattern detection is rough and does not replace the other measures.
WorkedSource apps/mail/docs/ki.mdmacOS protects app data from the MCP server
The MCP server is a command-line program that accesses the app's container; since version 14, macOS asks for permission on first access (“App Data”). A clean setup is still open.
LimitSource ADR 0009Interface in German and English
Mail became bilingual, with language switching without a restart, prefixes and quote introductions in the language used when composing, and tests and screenshots in both languages.
WorkedSource apps/mail@eecb252
- Day 2
Own protocol layer instead of enough_mail
IMAP, SMTP and MIME were built in pure Dart following the RFCs, instead of using the large, irregularly maintained enough_mail library. Result: full control and more than 60 protocol tests against custom fake servers, but maintenance lies with the project.
DecisionSource apps/mail/docs/decisions/0001-protokollschicht.mdSQLite handles 50,000 messages
Local storage with SQLite and FTS5, without an ORM. Measured in a test with 50,000 messages: a list with two pages and the unread count in about 50 ms, inserting the headers in about 2 s.
WorkedSource apps/mail/docs/decisions/0002-speicher.mdHTML emails without WebView
HTML is rendered in Flutter widgets without JavaScript, with its own sanitising and a second protective layer against loading remote content; tracking pixels are removed. The cost: complex newsletter layouts look simpler than in a browser.
DecisionSource apps/mail/docs/decisions/0003-html-darstellung.mdQRESYNC only with modseq
Correction in syncing: the QRESYNC extension is now used only if the server provides modseq.
BugSource apps/mail@d332331Keychain needs team signing
Until it is signed with a team identity, Mail runs on macOS without keychain-access-groups and falls back to the classic keychain. Signing remains work for people.
LimitSource apps/mail@568eeb5Tested only against fake servers
All protocol functions are tested against custom fake servers in the test process; nothing has been tested with real providers yet. Open points include very large mailboxes, IDLE behind corporate proxies and certificates of real servers.
LimitSource apps/mail/docs/compatibility.mdOAuth fails on reviews, not on code
XOAUTH2 is done at the protocol level, but the sign-in flow is missing. For Gmail, Google requires an app review and an annual CASA security assessment (without review, at most 100 test users); Microsoft 365 is mostly unusable without OAuth.
LimitSource apps/mail/docs/oauth.mdFull flow as an integration test
The full flow is covered by an integration test; in the same step, renewal of IDLE every 15 minutes was added.
WorkedSource apps/mail@c505ef1
- Day 1
Basic framework from bo new-app
Mail was created from the `bo new-app` template with app icons and network access for macOS and was added to the master repository as a submodule on the same day.
WorkedSource apps/mail@f72e100
What the app does today
Mail is an email client for IMAP and SMTP. Messages are stored locally and readable offline; sorting happens on the device, not on someone else’s server.
Accounts and sync
- Any number of accounts, set up with address and password
- Automatic detection of server settings
- New mail right away via IDLE, offline queue
Inbox
- One inbox for all accounts, sorted locally into personal, notifications and newsletters
- Screen new senders, then allow or block them
- Pin, remind me later, conversations
- Full-text search with operators such as from:, subject: or has:attachment
Reading and writing
- HTML without scripts, external images and tracking pixels blocked
- Undo send, send later
- Single-key shortcuts and command search
- Laid out like a mail app: glass sidebar, dense list, calm reading view
Templates, Claude and protection
- Templates and snippets with placeholders such as {{FirstName}} or {{Date}}
- Shortcuts such as /regards turn into text as you type
- MCP server: Claude creates and edits drafts; it can only suggest sending, and the app asks first, listing every recipient
- App lock with a passcode, optionally with Face ID, Touch ID or fingerprint
- “Hide previews”: notifications only give a count, the list shows no text
On iPhone and iPad
The adaptation for iPhone and iPad is in progress.
Features in detail
File formats
- IMAP
- SMTP
- TLS
How it connects
- Attaches Balane documents straight to messages.
- Optional AI with your own key: summarise, draft a reply, pull out tasks – only as suggestions.
- The same in every app: command search with ⌘K, German and English, automatic saving on your device.
Platforms
- macOS
- available
- Windows
- available
- iOS
- planned
- Android
- available
- Web
- planned
Not finished software: expect bugs and changes to the file format. Please don’t keep important data only in the apps, and back up regularly.
App privacy policy →Articles about Mail
- Nov 11, 2026Nine office apps for Apple: why I’m changing courseWhy am I planning one combined app for Mac, iPhone and iPad instead of 18 separate platform versions?
- Oct 16, 2026Why doesn't a company just build its own Office?Maintenance, Word files, risk: when is building it yourself worth it?
- Oct 15, 2026Is AI eating its own makers? I rebuilt OfficeWhat does it mean if Office can be rebuilt with AI?
- plannedSecurityWhat do you have to check yourself, and what can you leave to the AI?