ProtonMail : mark spam as read automatically

ProtonMail is a geat secure and private email provider. They offer end-to-end encryption and their servers are located in privacy-minded Switzerland. If you want to know more about them, head over to Wikipedia.

By default, ProtonMail is pretty good at detecting junk mail and filing it into the “Spam” folder, but it is not marked as “read”. If you’d rather have spam be marked as read automatically, here’s how to do it.

1. Login into your account and head over to the settings.

2. Choose “Filters”, then “Add Sieve Filter”

3. Type in a name for the filter (e.g. “Mark Spam as read”) and replace the contents of the “Sieve Script” field with the following code :

require ["include", "environment", "variables", "relational", "comparator-i;ascii-numeric", "spamtest", "imap4flags"];

if allof (environment :matches "vnd.proton.spam-threshold" "*", 
spamtest :value "ge" :comparator "i;ascii-numeric" "${1}")
{
  addflag "\\Seen";  
  return;
}

4. Click “Save”, and voilĂ !

If you want to learn more about writing your Sieve filters scripts in ProtonMail, check out the docs.

One thought on “ProtonMail : mark spam as read automatically”

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.