Home / Guides / SQLite FTS5 Email Archive
Architecture & Local AI · 4 min read

Offline Email Search with Standard SQLite + FTS5.

Waiting on web search spinners inside Outlook Web—only to miss attachments buried in older project threads—breaks deep work. By persisting every Inbox and Sent item into indexed local SQLite FTS5 tables on your disk, searches run completely offline directly against your SSD.

Try MailVault Pro v0.2.1 Free (50 Emails · Zero Credit Card)

Verify SHA-256 checksums anytime at SHA256SUMS.txt · Upgrade later for $29 once forever.

irm https://mailvaulty.com/install.ps1 | iex

Dual SQLite Architecture (inbox.db + sent.db)

Instead of mixing everything into opaque proprietary stores, MailVault Pro separates inbound and outbound mailboxes into structured SQLite 3 schemas with FTS5 virtual tables indexing subjects, sender addresses, recipients, full message bodies, and attachment filenames.

Because FTS5 executes tokenized boolean queries directly inside compiled SQLite locally on your machine, you never depend on network connectivity or remote servers to locate old correspondence.

Fuel Local AI & Scripts Without Cloud Risk

Because your local SQLite databases and exported JSONL / Markdown OKF files obey transparent schemas on your own machine, data engineers and AI builders can run private RAG pipelines, semantic search embeddings, or compliance audits cleanly—without ever leaking customer PII to remote SaaS APIs.

Side-by-Side Comparison

CapabilityMailVault ProLegacy Alternative
Full-Text EngineSQLite 3 FTS5 (BM25 ranked)Outlook Search / Web API
Execution EnvironmentLocal offline disk queryRemote web / Graph API round-trips
Readable by Python / Datasette100% standard SQLiteRequires Graph API
Attachment Text & FilenamesIndexed + extracted locallyOften skipped in cache

Frequently Asked Questions

Can I query inbox.db and sent.db directly with Python or sqlite3 CLI?

Yes! Your archive belongs strictly to you—there is zero proprietary encryption lock-in on your own SQLite files unless you choose OS disk encryption (BitLocker/FileVault).

More MailVault Pro Archiving Guides

Outlook Migration & Backup
New Outlook PST Alternative

Microsoft New Outlook dropped classic local .PST export and backup. Learn how to archive Microsoft 365 and Outlook emails to local SQLite FTS5 and Obsidian Markdown with MailVault Pro.

Obsidian & PKM Workflows
Outlook to Obsidian Markdown

Turn Microsoft 365 and Outlook conversations into graph-linked Obsidian Markdown notes with YAML frontmatter, wikilinks, and local attachments without uploading company mail to the cloud.

Microsoft 365 Ownership
M365 Local Backup (No Admin)

Create an offline encrypted-at-rest local backup of your Microsoft 365 work or school mailbox on Windows, Mac, or Linux without begging IT to whitelist a third-party Azure AD tenant app.

Software Alternatives
MailStore Alternative

Looking for a MailStore Home alternative that runs natively on Apple Silicon macOS and Ubuntu/Debian Linux, supports New Outlook/M365, and exports open SQLite + Markdown?