Sieve Filters Used on ProtonMail and Share Your Own Filters

Subject: Sieve Filters Used on ProtonMail and Share Your Own Filters

Hello everyone,

In this forum thread, we are discussing the Sieve filters that people use on ProtonMail to manage their email messages and improve their inbox’s privacy and security. We also invite you to share your own filters that you use to manage your email.

Here are some sample Sieve filters that you can use on ProtonMail:

require ["fileinto", "reject", "imap4flags","envelope"];

# Block messages with certain keywords in the subject line
if header :contains "subject" ["Buy", "Sell", "Earn money", "Get rich quick", "Work from home"] {
  reject "This message is a potential spam and has been blocked.";
}

# Block messages with certain keywords in the subject line in Dutch
if header :contains "subject" ["Koop", "Verkoop", "Verdien geld", "Snel rijk worden", "Werk vanuit huis", "Aanbieding", "Aanbod"] {
  reject "Dit bericht is mogelijk spam en is geblokkeerd.";
}

# Block messages larger than 2MB 
if size :over 2000000 {
  reject "This message is too large to be processed.";
}

# Filter all private relay email from Apple.
if address :domain "from" ["no_reply@email.apple.com"]
{
  fileinto "Apple";
}

# Store all source code repository emails into the "Development" folder.
if address :domain "from" ["github.com", "gitlab.com"]
{
  fileinto "Development";
}

# Reject spam mail
if header :contains "x-spam-level" "****"
{
   discard;
}

Feel free to add any filters that you use and think would be useful to the community. If you have any suggestions or ideas to improve the existing filters, please let us know. We hope this thread helps you manage your email more efficiently and securely.

Thank you!

Hi Teun, I was actually looking into this lately.
I maintain a blocklist that also contains many email spam domains, was thinking to auto format it into a filter for proton but still wondering what would be the best way of updating it.