An email client whose search finds everything, fast

Search is where most mail programs let you down: a message you can see in the list does not come up, a search takes ten seconds, or there are three search boxes that each look somewhere else. OpenWren has one search box. It covers every account and every year of mail, and it answers in milliseconds.

One box, every account, every year

Press Ctrl+K and type. OpenWren searches the sender, the recipients, the subject and the text of every message it has synced, in all your accounts at once. Results are listed newest first and grouped by year, with the words you searched for highlighted, and each result shows its folder and account.

A single word also matches longer words that start with it, so invoic finds "invoice" and "invoices". Put several words in quotes to find them as an exact phrase.

Narrow it down

Buttons above the results limit the search to one account, to mail with attachments, or to a period: the past year, older than one or two years, or dates you choose. You can type the same things:

TypeTo find
from:annaMail from a sender
to:Mail sent to a recipient
subject:Words in the subject
has:attachmentMail with attachments
is:unread, is:flaggedUnread or flagged mail
before:2024-01-31, after:Mail before or after a date
in:archiveMail in one folder
Searching for "invoice" across three accounts, with filters for account, attachment and date, and results grouped by year

Why it is fast

OpenWren does not ask your mail server each time you search, and it does not depend on the search index of your operating system. It keeps its own full-text index (SQLite FTS5) on your computer and updates it as mail arrives. That is why search also works without a connection, and why it does not slow down when the server is busy.

30 ms
A word found in a few hundred of 200,000 messages
7 ms
The same search on 50,000 messages
190 ms
The slowest case: a word found in most of 200,000 messages

Median times of the database work, measured on a laptop with an encrypted mailbox; drawing the results comes on top. The benchmarks page has the machine, the method and the commands to repeat them.

The index is encrypted with your mail

A search index contains the words of all your mail. Many fast search tools keep it as an ordinary file next to the mail. In OpenWren the index is a table inside the same encrypted database (SQLCipher) as the messages, so there is no readable copy of your mail's text on the disk. The key is kept in your system's keyring. The security page says more.

Mail that is not downloaded yet

When you add an account, OpenWren first fetches the sender, recipients and subject of every message, so all of your mail can be found by those within seconds or minutes. The text of the messages follows in the background, newest first. Until a message's text has arrived, "Search the server for more" asks your mail server to look through it.

What search does not do yet

  • Results are ordered by date, newest first, not by how well they match.
  • Words must be spelt as they are in the mail; a typing mistake is not corrected.
  • The contents of attachments are not searched, only whether a message has one.
  • Text in Chinese, Japanese and Korean is not split into words, so searching inside a sentence in those languages often finds nothing. This is being worked on.

Try it on your own mail

OpenWren is free and open source, and works with Gmail and any IMAP account. Microsoft 365 and Outlook.com accounts are not supported yet.