9to5mac: Proton Mail expands encrypted email content search on iPhone, indexing messages privately

Searching inside encrypted messages
The Proton Mail iPhone app now supports searches for words in the body of encrypted emails. Previously, users could search details such as a sender or subject, but not the message’s contents.
Proton says it cannot access encrypted email content to create a server-side search index. Instead, the company designed the feature to build and use that index on the device, where the messages are decrypted.
How the private index works
When users turn on content search, the app downloads their historical emails to the device and processes them into keywords. It then creates an inverted index, encrypts it and stores it locally.
Searches for message-body words are run against that local index, so the results come from the device rather than Proton’s servers. The company says setup should take a few minutes for most users, and incoming messages will be indexed automatically.
Controls and wider rollout
Users can remove their locally stored index at any time through the app’s settings. Proton is also adding shortcuts beside the search bar for emails users have searched for or opened before.
Key points
- iPhone users can now search words within encrypted email bodies.
- The index is created and searched locally on the user’s device.
- Proton says new messages will be indexed automatically.
- Mobile availability is expected to reach all users by the end of December.

