Skip to content

Instantly share code, notes, and snippets.

@endocrimes
Created November 1, 2018 11:01
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 endocrimes/fda68d1ef93dfd9cd6834bebc28f6eae to your computer and use it in GitHub Desktop.
Save endocrimes/fda68d1ef93dfd9cd6834bebc28f6eae to your computer and use it in GitHub Desktop.
if
allof(
address :is "From" "notifications@github.com",
address :is "Cc" "mention@noreply.github.com"
)
{
fileinto "INBOX.notifications.github.direct-mention";
}
elsif
allof(
address :is "From" "notifications@github.com",
address :is "Cc" "team_mention@noreply.github.com"
)
{
fileinto "INBOX.notifications.github.team-mentions";
}
elsif address :is "Cc" "your_activity@noreply.github.com" {
addflag "\\Seen";
fileinto "INBOX.notifications.github.my-activity";
removeflag "\\Seen";
}
elsif
anyof(
address :is "Cc" "assign@noreply.github.com",
address :is "Cc" "review_requested@noreply.github.com"
)
{
fileinto "INBOX.notifications.github.assignments";
}
elsif
anyof(
address :is "Cc" "comment@noreply.github.com",
address :is "Cc" "milestone@noreply.github.com",
address :is "Cc" "push@noreply.github.com",
address :is "Cc" "state_change@noreply.github.com"
)
{
fileinto "INBOX.notifications.github.other";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment