Your mail is a database you can open.
None of this is required. It is there if you want it.

Coming soon to the App Store
Ask it anything.
It is one SQLite file with a documented schema. Any tool that reads SQLite reads it.
C=com.boringware.emailcd ~/Library/Containers/$C/Datacd "Library/Application Support/$C"sqlite3 \ "file:mail.sqlite?immutable=1"SELECT from_name, count(*) AS messagesFROM messageWHERE from_email NOT IN (SELECT email FROM account)GROUP BY from_emailORDER BY messages DESC, from_nameLIMIT 8;Foundry CI|40Elena Vasquez|6Ivy Chen|6Pagewatch|6Foundry Status|4Priya Natarajan|4Cloudpine|3Jonas Lindqvist|3On your phone too.
Settings › Database lists the tables with their counts. Browse one, or run a query of your own.
Scripts that run when mail arrives.
On the Mac, a script named for an event goes in the app's Application Scripts folder. There are fourteen events, such as on-new-mail, on-send and on-archive; each script gets its event as JSON.
C=com.boringware.emailcd ~/Librarymkdir -p "Application Scripts/$C"cd "Application Scripts/$C"cat > on-new-mail <<'EOF'#!/bin/shpayload=$(cat)echo "$(date): $payload" \ >> /tmp/email-events.logEOFchmod +x on-new-mailSix Shortcuts actions.
Each is an action in the Shortcuts app, to chain with anything else. Search Email takes Gmail's operators, such as from: and has:attachment.
- Get Unread Count
- Search Email
- Compose Email
- Get Latest Messages
- Set Sender's Destination
- Archive Conversations From Sender
Every setting in one file.
Export your settings to one JSON file, keep it, and import it back. An import checks the whole file first, then applies all of it or none.
{ "version": 1, "senders": [ { "address": "status@foundry.example.com", "goesTo": "notifications" }, { "address": "weekly@northwind.example.com", "goesTo": "newsletters" } ], "preferences": { "markReadOnOpen": true, "blockRemoteImages": true, "autoDarkMail": true }}What your own systems know about a sender.
Set a lookup URL in Settings › General, and the person panel shows what it answers, in Markdown or plain text. The address goes to that URL and nowhere else.
Also in Email
Coming soon to the App Store
- Mac
- iPhone
- iPad
- Siri







