Create a gist now

Instantly share code, notes, and snippets.

@bkeepers /labels.md Secret
Last active Feb 12, 2017

What would you like to do?

@kytrinyx's Gmail filters

Stick each line into the search bar, and then click the little gray down-arrow on the right hand side right before the button so you can create a filter from the search.

image

My labels are indicated with => labelname, but that's not part of the search. My labels are nested, which is handy when you want to collapse them out of the way.

The gmail shortcut for going to a label is "g l" (go to label, presumably), and you don't need to type the whole label name, just something unique. So "g" "l" "men" goes to GitHub/mentions

If I'm in a label and reading an email, "y" will remove the label.

  • GitHub/author: from:(notifications@github.com) to:(-mention@noreply.github.com -team_mention@noreply.github.com author@noreply.github.com)

  • GitHub/mention: from:(notifications@github.com) to:(mention@noreply.github.com -team_mention@noreply.github.com -author@noreply.github.com)

  • GitHub/team-mention: from:(notifications@github.com) to:(-mention@noreply.github.com team_mention@noreply.github.com -author@noreply.github.com)

  • GitHub/watching: from:(notifications@github.com) to:(-mention@noreply.github.com -team_mention@noreply.github.com -author@noreply.github.com)

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