Skip to content

Instantly share code, notes, and snippets.

@renestalder
Last active March 31, 2022 11:07
Show Gist options
  • Save renestalder/c6e0011d9fff5ea2b8d891f2133761b2 to your computer and use it in GitHub Desktop.
Save renestalder/c6e0011d9fff5ea2b8d891f2133761b2 to your computer and use it in GitHub Desktop.
Personal Sieve Triaging
require ["fileinto", "extlists"];
if anyof(header :contains "subject" "online purchase", header :contains "subject" "rechnung", header :contains "subject" "order", header :contains "subject" "artikel verschickt", header :contains "subject" "auftragsbestätigung", header :contains "subject" "sendung", header :contains "subject" "Bankdokumente")
{
fileinto "Paper trail";
} elsif anyof(exists "X-Gitlab-Issue-Id", address :is "from" ["notifications@tasks.clickup.com", "notes-reply@email.zeplin.io"])
{
fileinto "Issues";
} elsif anyof(exists "X-Gitlab-Pipeline-Status", address :is "from" "status@notify.gitlab.com")
{
fileinto "Status";
} elsif anyof(exists "X-Gitlab-Project-Id")
{
fileinto "Issues";
} elsif anyof(exists "list-unsubscribe", address :contains "to" "+")
{
fileinto "Feed";
}
elsif not header :list "from" ":addrbook:personal"
{
# Checks that the sender is in your personal address book
fileinto "Screening";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment