Skip to content

Instantly share code, notes, and snippets.

@renestalder
Last active April 27, 2021 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renestalder/cd8dad231fefb8e6f677098aae5dba1f to your computer and use it in GitHub Desktop.
Save renestalder/cd8dad231fefb8e6f677098aae5dba1f to your computer and use it in GitHub Desktop.
HEY Sieve

Example of a similar email triaging system like HEY.com, but with a manual Sieve-Filter. For example, protonmail.com supports Sieve-Filters. See for other email clients in the info below.

The individual sections can be changed and extended by your liking.

require ["fileinto", "extlists"];  

if anyof(header :contains "subject" "online purchase", header :contains "subject" "invoice", header :contains "subject" "order", header :contains "subject" "order")
{
  # Everything related to orders, invoices and so on, goes to "Paper trail"
  fileinto "Paper trail";
} elsif anyof(exists "list-unsubscribe", address :contains "to" "+")
{
  # Everything that looks like a newsletter or some other form of email list, goes to "Feed"
  # That includes alias email addresses e.g. myemail+myalias@example.com
  fileinto "Feed";
} elsif not header :list "from" ":addrbook:personal"
{
  # Checks that the sender is in your personal address book and if not, puts it into the "Screening folder"
  fileinto "Screening"; 
}

# And everything else lands in your Inbox

About Sieve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment