Skip to content

What Is MailAgent

MailAgent reads each email for you the instant it lands. It automatically classifies every message, sets its priority, writes a one-line summary, and drafts a reply—so the important rises and the noise sinks, and every conclusion can be clicked back to the original email to verify.

It runs on your own Mac and keeps your email data on the machine. It is a “local-first” tool, not yet another cloud service that hauls your inbox onto someone else’s servers.

MailAgent is a desktop App—it ships with a complete backend that syncs and classifies email in the background (a self-contained runtime, no separate Python or CLI install needed), and you open it every day to read mail, chat, and reply. Everything below is available right out of the box.

CapabilityWhat it meansDefault
Real-time email syncSent/received mail, attachments, and the back-and-forth of a single topic (threads) are automatically mirrored into a Notion database as a searchable archive.Always on
AI auto-classificationAs soon as an email is stored, it is tagged with a category, a priority (Urgent / Important / Normal / Low), a one-line summary, and a suggested action, all written into the email itself.Optional
Full-text searchThe body plus attachment text (PDF / Word / PPT / Excel) all enter the full-text index; Chinese is searchable too, with matches highlighted.Enabled with sync
AI Chat panelInside the desktop App, ask the AI about the current email, have it search across emails, and stream a drafted reply.In the App
One-click translationTranslate English emails with one click—available in the detail view, the toolbar, and in bulk.In the App
Meeting-invite detectionMeeting invites (.ics) embedded in an email are automatically parsed into calendar events.Always on
Calendar syncIncrementally sync your Exchange calendar to the machine, viewed together with the meeting invites in your email.Off (can enable)
Dynamic Island notifications (requires a separate plugin)Important emails pop up as Dynamic Island cards, with one-click mark-as-read / flag / draft.Off
Feishu notificationsUrgent / important emails are pushed to Feishu, with interactive reply buttons.Off
Remote web accessWhile traveling, view your mail from an iPad / iPhone / someone else’s computer through a browser.Off
Daily / weekly / monthly reportsEach day the AI reviews the past 24 hours of email and curates it into a structured report you can actually finish reading.Off

The capabilities marked “Off / Optional” above are not enabled by default; turn them on one by one as you need them—when you are just getting started, the first few rows alone are already plenty.

1. Processed on arrival, not in after-the-fact batches. Category, priority, summary, and suggested action are written the moment the email arrives. Open the list and you immediately see which one to read first, without scanning through everything again yourself.

2. The AI writes the prose; the code guards the numbers. The thing an email assistant fears most is “making things up.” MailAgent’s discipline: statistics, links, and email IDs are all deterministically backfilled by code; the AI is only responsible for wording and grouping. If the AI gets something wrong, only the phrasing is wrong, never the facts. Every number and every citation in a report can be clicked back to the real email to verify.

3. Local-first, with transparent books. Your email data lives on your Mac. Every AI call is accounted for—volume processed, spend, latency, cache hits, and sync health are all laid out on a dashboard, not decorative charts.

Before installing, confirm your environment meets these conditions.

ItemRequirement
Operating systemmacOS 12 (Monterey) or later; either Apple Silicon (M series) or Intel x64 works.
MailboxA corporate Exchange / Microsoft 365 mailbox (bridged via DavMail), or an account already added in the built-in macOS Mail.app (the AppleScript path).
Notion (optional)Not needed by default—email bodies and attachments are stored in a local SQLite database on your Mac, which the App reads and writes directly. You only need a Notion workspace if you want email additionally mirrored to Notion as an extra archive (setup steps are in (Developer) Run the Backend from Source under “Optional — build a Notion mirror”).
RuntimeNo separate Python install needed—the desktop App ships with a self-contained runtime. (Only developers running the backend from source need Python 3.11+.)
NetworkThe first launch requires internet access to verify the Notion API, and (if AI is enabled) to verify the LLM gateway.
AI (optional)An Anthropic-compatible LLM gateway key, or a Notion Custom Agent. You can use sync and search without filling this in—you just won’t have AI classification or Chat.

When you are getting started, the terms below will recur in the interface, the logs, and the docs. Just get a rough impression for now—no need to memorize them.

  • Backend / mail-sync: the main sync service running in the background, responsible for moving email into the local database and then mirroring it to Notion.
  • Desktop App: the graphical interface you open day to day—reading mail, searching, chatting, and replying all happen here.
  • SQLite: the local database file on your Mac (data/sync_store.db), the “authoritative copy” of email bodies and attachments; Notion is its mirror.
  • DavMail: a bridge program that translates a corporate Exchange mailbox into standard protocols, letting MailAgent read and write email at high speed.
  • Notion Integration / Token: the “bot” you create in Notion; MailAgent uses its Token to write emails into your database.

A more complete glossary is in the Troubleshooting FAQ.


Learn more about the full project and its architecture: README · Architecture Overview ARCHITECTURE.md