Proton

How to search your Proton Mail messages

Reading
8 mins
Category
Search and organize emails

Proton Mail uses zero-access encryption to store all emails at rest, and emails sent between Proton Mail users are fully end-to-end encrypted. So we can’t read the contents of your emails.

To preserve this level of privacy, we’ve created a search function that allows you to search your emails without giving our servers access to your messages.

Learn how to search your messages privately to find that one email you’re looking for.

Searching email content with the Proton Mail web app
How to enable search message content
How to disable search message content
Troubleshooting content search
Searching email content with Proton Mail Bridge
Advanced search in Proton Mail
How to use advanced search
How to search using advanced syntax

Searching email content with the Proton Mail web app

You can search the contents of your encrypted emails without giving Proton Mail access to those messages. We achieve this in the web app by creating a local index of your emails and storing it using your browser’s web storage(new window).

When you perform a content search in the web app, Proton Mail goes through the index of your downloaded emails and highlights all matches, so your emails do not need to be searched on our servers. Your emails remain private and secure, as the emails are searched locally on your device.

How to enable search message content

  1. In the Proton Mail web app, click in the Search messages box at the top.
Search messages box
  1. Click Enable.
Enable button
  1. Click Enable to confirm. Your messages will then be downloaded from Proton Mail’s servers, decrypted, and indexed locally in an encrypted state.
Enable to confirm enabling search message content

This process may take a few minutes and can be quite resource-intensive. 

Click Pause if you want to pause indexing and resume later. You can still perform a standard search (not including message content) while indexing is in progress by clicking Search. To further refine your search, click More search options.

Pause and More search options buttons

Note: If you’ve indexed your message content before but used a different browser, you’ll need to create a new index by following these steps again.

  1. Once the indexing is complete, you can search for one or more keywords in the search bar, which will return results that include the contents of your messages.

Note:

  • Your index will be updated automatically — new emails will be added regularly as long as your browser is open.
  • If you haven’t used your browser for some time, the index might need a few seconds to update before you can search message content again.
  • If your mailbox is very large, you can speed up searches by disabling search message content. The index won’t be erased if you do this.

In rare cases, the contents of a large inbox may require more storage capacity than your browser offers. 

If so, a date will be displayed showing how far back in time you can search the contents of your encrypted messages. Because the index size is limited by your browser’s web storage capacity, this date will be updated as new emails arrive in your inbox to ensure the most recent messages can be searched.

How to disable search message content

To temporarily disable email search:

  1. Click in the Search messages box at the top.
Search messages box
  1. Turn off the Search message content switch.
Search message content switch

To delete the index of your emails from your web storage, you need to clear your browser data by clicking Settings → Clear browser data.

Clear browser data option in settings

If you want to search the contents of your messages again, you’ll need to enable search message content again by following the steps above.

You may see the following error messages:

  • Content search cannot be enabled in this browser. Please try another browser.

Your browser doesn’t support web storage. Please use one of our recommended browsers instead.

  • Please activate your content search again.

Your index is no longer valid or has been corrupted. To rebuild the index: 

1. Clear your browser data by clicking Settings → Clear browser data.

Clear browser data option in settings

2. Enable search message content again by following the steps above.

Searching email content with Proton Mail Bridge

You can also search the contents of your emails on your desktop device by decrypting your messages and downloading them to a third-party email client with Proton Mail Bridge

You can then search your message contents locally using your email client’s built-in search functions.

Advanced search in Proton Mail

You can use the advanced search feature in the Proton Mail web app to search your emails by:

  • Subject (by searching for a keyword that is in the subject of the email)
  • Email address
  • Folder location (Inbox, Drafts, Sent, Archive, Spam, Trash, or custom folders)
  • Sent or received date

If you want to search the contents of your emails, you’ll need to:

To perform an advanced search in the Proton Mail web app, click in the Search messages box and select More search options.

More search options

The advanced search fields include:

  • Search messages: Enter your search keywords here.
  • Search in tabs: Choose whether to search within All mail, or your Inbox, Drafts, or Sent folders. Select the Other dropdown menu to choose another folder in your account, such as Starred, Archive, or a custom folder.
  • Date From and To fields: Search for emails sent or received within a specific time frame.
  • Sender and Recipient fields: Search for emails sent from or received by a specific person by searching their name or email address.
  • Address: Choose All or a specific address to include in your search.
Search message content options

Choose any combination of the above fields and click the Search button.

For example, you can look for emails in your inbox received within a specific time period, from a particular sender, with certain keywords in the subject (or contents if you’ve enabled search message content).

How to search using advanced syntax

Proton Mail also supports complex searches using advanced syntax for power users. Advanced search syntax works in the Proton Mail web app and our mobile apps for Android and iPhone/iPad.

But you can’t use advanced syntax to search message content. To use advanced syntax, you need to disable search message content.

Special characters can be used to execute complex logic when performing searches on your message metadata (the Subject, To/CC/BCC, and From fields). The logical AND is implicit between any two search keywords (searching for “hello world” means match “hello” AND “world”). The other search operators are listed in the table below.

NameOperatorExampleExample Explanation
Logical OR|hello | worldMatches text containing hello or world
Logical NOT! or –hello !worldMatches text with hello but not world
Grouping()(cat -dog) | (cat mouse)Matches text with cat and without dog or cat with mouse
Phrase“”“hello world”Matches text with the keywords adjacent and ordered, such as hello world and hello world and universe but not hello brave new world. You may use * as a word placeholder — hello * * world would match hello brave new world
Proximity“”~N“hello world”~10Matches text containing hello and world with less than 10 words between them
Quorum“”/N“hello dear world”/2Matches text with at least 2 of the 3 words, such as hello dear and hello world.
hello there would not match, but hello there world would
Order“<<hello << worldMatches text with hello and world only if they appear in the specified order.
hello world would match but world hello would not
Start^^helloMatches text that begins with hello, such as hello world but not say hello
End$world$Matches text that ends with world, such as hello world, but not world peace
Wildcards* and ?h?llo w*dThe ? operator matches any single character, while * matches zero or more characters. The example search would match hello world as well as hallo word

Didn’t find what you were looking for?

General contactcontact@proton.me
Media contactmedia@proton.me
Legal contactlegal@proton.me
Partnerships contactpartners@proton.me