Tim's gmail filters for Kube

404 views
Skip to first unread message

Tim Hockin

unread,
Jun 2, 2017, 2:57:46 PM6/2/17
to kuberne...@googlegroups.com
Hi all. This came up in conversation today, so I thought I would post
my gmail setup to cope with the firehose of kubernetes. It is
imperfect in a lot of ways, and gmail's negative-searching is
basically useless, but it works for me more often than not. I hope
this helps. If you have refinements, please send them my way!

Goal: use my gmail inbox as my primary "todo list".

First, I "watch" the kubernetes API. That's going to drag in hundreds
of messages per day But I'll never see most of them.

Filters:

# Stick a blue label on anything kubernetes-related
Matches: (kubernetes OR k8s OR kubelet OR kube)
Do this: Apply label "k8s", Mark it as important

# Archive my own actions (sending these is an option in github's
settings). I send them but
# archive them, so if I need to see history of an issue I can.
Matches: from:notifi...@github.com to:(your_a...@noreply.github.com)
Do this: Skip Inbox, Mark as read

# Skip bot comments
Matches: (from:(notifi...@github.com) (from:(k8s-merge-robot) OR
from:(Kubernetes Bot) OR from:(k8s-ci-robot) OR from:(Submit Queue)))
Do this: Skip Inbox, Mark as read

# Skip push notifications
Matches: to:(pu...@noreply.github.com)
Do this: Skip Inbox, Mark as read

# Red label on things assigned to me
Matches: to:(ass...@noreply.github.com)
Do this: Star it, Apply label "gh/p0", Mark it as important

# Orange label
Matches: to:(com...@noreply.github.com)
Do this: Star it, Apply label "gh/p1"

# Yellow label
Matches: to:(men...@noreply.github.com)
Do this: Apply label "gh/p2"

# Grey label
Matches: to:(team_m...@noreply.github.com)
Do this: Apply label "gh/p3"

Matches: to:(aut...@noreply.github.com)
Do this: Star it, Apply label "gh/me", Mark it as important

# Red label
Matches: (list:"kubernetes.kubernetes.github.com" ("Labelling this PR
as size/XL" OR "Labelling this PR as size/XXL")
Do this: Apply label "k8s/XL"

# Orange label
Matches: list:"kubernetes.kubernetes.github.com" "Labelling this PR as size/L"
Do this: Apply label "k8s/L"

# Yellow label
Matches: list:"kubernetes.kubernetes.github.com" "Labelling this PR as size/M"
Do this: Apply label "k8s/M"

# Green label
Matches: (list:"kubernetes.kubernetes.github.com" ("Labelling this PR
as size/XS" OR "Labelling this PR as size/S"))
Do this: Apply label "k8s/S"

# Purple label
Matches: from:("Kubernetes Submit Queue")
list:"kubernetes.kubernetes.github.com" AND "Automatic merge from
submit-queue"
Do this: Apply label "k8s/merged"

# Skip messages about issues that I am not participating in, but leave
them unread
Matches: from:(notifi...@github.com) to:(subsc...@noreply.github.com)
Do this: Skip Inbox

Maciej Szulik

unread,
Jun 5, 2017, 8:51:04 AM6/5/17
to Tim Hockin, kuberne...@googlegroups.com
I'm currently in the process of re-creating my filters and on top of what Tim
said I've found http://lyzidiamond.com/posts/github-notifications-google-script
which allows having some piece of code with more advanced filtering features.

Maciej

On Fri, Jun 2, 2017 at 8:57 PM, 'Tim Hockin' via Kubernetes developer/contributor discussion <kuberne...@googlegroups.com> wrote:
Hi all.  This came up in conversation today, so I thought I would post
my gmail setup to cope with the firehose of kubernetes.  It is
imperfect in a lot of ways, and gmail's negative-searching is
basically useless, but it works for me more often than not.  I hope
this helps.  If you have refinements, please send them my way!

Goal: use my gmail inbox as my primary "todo list".

First, I "watch" the kubernetes API.  That's going to drag in hundreds
of messages per day  But I'll never see most of them.

Filters:

# Stick a blue label on anything kubernetes-related
Matches: (kubernetes OR k8s OR kubelet OR kube)
Do this: Apply label "k8s", Mark it as important

# Archive my own actions (sending these is an option in github's
settings).  I send them but
# archive them, so if I need to see history of an issue I can.

Do this: Skip Inbox, Mark as read

# Skip bot comments
Matches: (from:(notifications@github.com) (from:(k8s-merge-robot) OR

from:(Kubernetes Bot) OR from:(k8s-ci-robot) OR from:(Submit Queue)))
Do this: Skip Inbox, Mark as read

# Skip push notifications
Matches: to:(pu...@noreply.github.com)
Do this: Skip Inbox, Mark as read

# Red label on things assigned to me
Matches: to:(ass...@noreply.github.com)
Do this: Star it, Apply label "gh/p0", Mark it as important

# Orange label
Matches: to:(com...@noreply.github.com)
Do this: Star it, Apply label "gh/p1"

# Yellow label
Matches: to:(men...@noreply.github.com)
Do this: Apply label "gh/p2"

# Grey label

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/CAO_RewaFNWZfC1ZrjGcCgwTX_2JA%2BGkOyTF--D9WaizDY6AotA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Tim Hockin

unread,
Jun 5, 2017, 11:34:50 AM6/5/17
to Maciej Szulik, kuberne...@googlegroups.com
This looks really cool, but I am Javascript-ignorant enough to be
scared of messing up my inbox.

The script I want does this:

for each thread in inbox:
look at the last message
clone that label state to all other messages in the thread (inbox,
labels, etc)

This would make gmail negative searches (in:inbox -label:gh/p0). Alas
it seems the app script for gmail only support thread-labels, which
are a lie.
>> to:(your_a...@noreply.github.com)
>> Do this: Skip Inbox, Mark as read
>>
>> # Skip bot comments
>> Matches: (from:(notifi...@github.com) (from:(k8s-merge-robot) OR
>> from:(Kubernetes Bot) OR from:(k8s-ci-robot) OR from:(Submit Queue)))
>> Do this: Skip Inbox, Mark as read
>>
>> # Skip push notifications
>> Matches: to:(pu...@noreply.github.com)
>> Do this: Skip Inbox, Mark as read
>>
>> # Red label on things assigned to me
>> Matches: to:(ass...@noreply.github.com)
>> Do this: Star it, Apply label "gh/p0", Mark it as important
>>
>> # Orange label
>> Matches: to:(com...@noreply.github.com)
>> Do this: Star it, Apply label "gh/p1"
>>
>> # Yellow label
>> Matches: to:(men...@noreply.github.com)
>> Do this: Apply label "gh/p2"
>>
>> # Grey label
>> Matches: to:(team_m...@noreply.github.com)
>> email to kubernetes-de...@googlegroups.com.
>> To post to this group, send email to kuberne...@googlegroups.com.
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes developer/contributor discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-de...@googlegroups.com.
> To post to this group, send email to kuberne...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/kubernetes-dev/CALC2N4ZJFtGBcZSBdU9Ua5M%2BKfgE1JRuDhAPg3XaBvWKwe2LNg%40mail.gmail.com.

Erin Boyd

unread,
Feb 21, 2018, 7:59:25 PM2/21/18
to kuberne...@googlegroups.com
Per Twitter conversation!

---------- Forwarded message ----------
From: 'Tim Hockin' via Kubernetes developer/contributor discussion <kuberne...@googlegroups.com>
Date: Fri, Jun 2, 2017 at 12:57 PM
Subject: Tim's gmail filters for Kube
To: "kuberne...@googlegroups.com" <kuberne...@googlegroups.com>


Hi all.  This came up in conversation today, so I thought I would post
my gmail setup to cope with the firehose of kubernetes.  It is
imperfect in a lot of ways, and gmail's negative-searching is
basically useless, but it works for me more often than not.  I hope
this helps.  If you have refinements, please send them my way!

Goal: use my gmail inbox as my primary "todo list".

First, I "watch" the kubernetes API.  That's going to drag in hundreds
of messages per day  But I'll never see most of them.

Filters:

# Stick a blue label on anything kubernetes-related
Matches: (kubernetes OR k8s OR kubelet OR kube)
Do this: Apply label "k8s", Mark it as important

# Archive my own actions (sending these is an option in github's
settings).  I send them but
# archive them, so if I need to see history of an issue I can.

Do this: Skip Inbox, Mark as read

# Skip bot comments
Matches: (from:(notifications@github.com) (from:(k8s-merge-robot) OR

from:(Kubernetes Bot) OR from:(k8s-ci-robot) OR from:(Submit Queue)))
Do this: Skip Inbox, Mark as read

# Skip push notifications
Matches: to:(pu...@noreply.github.com)
Do this: Skip Inbox, Mark as read

# Red label on things assigned to me
Matches: to:(ass...@noreply.github.com)
Do this: Star it, Apply label "gh/p0", Mark it as important

# Orange label
Matches: to:(com...@noreply.github.com)
Do this: Star it, Apply label "gh/p1"

# Yellow label
Matches: to:(men...@noreply.github.com)
Do this: Apply label "gh/p2"

# Grey label

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.

Jessie Frazelle

unread,
Feb 21, 2018, 8:03:31 PM2/21/18
to Erin Boyd, kuberne...@googlegroups.com
I have something similar and I use this Ruby tool for generating the XML for Gmail... https://github.com/antifuchs/gmail-britta

Obviously I put it in a container https://r.j3ss.co/repo/gmail-britta/tags

On Wed, Feb 21, 2018 at 19:59 Erin Boyd <eb...@redhat.com> wrote:
Per Twitter conversation!

---------- Forwarded message ----------
From: 'Tim Hockin' via Kubernetes developer/contributor discussion <kuberne...@googlegroups.com>
Date: Fri, Jun 2, 2017 at 12:57 PM
Subject: Tim's gmail filters for Kube
To: "kuberne...@googlegroups.com" <kuberne...@googlegroups.com>


Hi all.  This came up in conversation today, so I thought I would post
my gmail setup to cope with the firehose of kubernetes.  It is
imperfect in a lot of ways, and gmail's negative-searching is
basically useless, but it works for me more often than not.  I hope
this helps.  If you have refinements, please send them my way!

Goal: use my gmail inbox as my primary "todo list".

First, I "watch" the kubernetes API.  That's going to drag in hundreds
of messages per day  But I'll never see most of them.

Filters:

# Stick a blue label on anything kubernetes-related
Matches: (kubernetes OR k8s OR kubelet OR kube)
Do this: Apply label "k8s", Mark it as important

# Archive my own actions (sending these is an option in github's
settings).  I send them but
# archive them, so if I need to see history of an issue I can.

Do this: Skip Inbox, Mark as read

# Skip bot comments
Matches: (from:(notifi...@github.com) (from:(k8s-merge-robot) OR

from:(Kubernetes Bot) OR from:(k8s-ci-robot) OR from:(Submit Queue)))
Do this: Skip Inbox, Mark as read

# Skip push notifications
Matches: to:(pu...@noreply.github.com)
Do this: Skip Inbox, Mark as read

# Red label on things assigned to me
Matches: to:(ass...@noreply.github.com)
Do this: Star it, Apply label "gh/p0", Mark it as important

# Orange label
Matches: to:(com...@noreply.github.com)
Do this: Star it, Apply label "gh/p1"

# Yellow label
Matches: to:(men...@noreply.github.com)
Do this: Apply label "gh/p2"

# Grey label
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/CAJhxK-k%3D9Qh6vwq-W67vA%2Bz4fpSHx587s%2Bx3da%2BKnd08F%2BehTg%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.
--


Jessie Frazelle
4096R / D4C4 DD60 0D66 F65A 8EFC  511E 18F3 685C 0022 BFF3
pgp.mit.edu

Erin Boyd

unread,
Feb 21, 2018, 8:11:30 PM2/21/18
to Jessie Frazelle, kuberne...@googlegroups.com
Obviously!
Cool.
Thanks for passing this on :)

Per Twitter conversation!


Do this: Skip Inbox, Mark as read

# Skip bot comments
Matches: (from:(notifications@github.com) (from:(k8s-merge-robot) OR

from:(Kubernetes Bot) OR from:(k8s-ci-robot) OR from:(Submit Queue)))
Do this: Skip Inbox, Mark as read

# Skip push notifications
Matches: to:(pu...@noreply.github.com)
Do this: Skip Inbox, Mark as read

# Red label on things assigned to me
Matches: to:(ass...@noreply.github.com)
Do this: Star it, Apply label "gh/p0", Mark it as important

# Orange label
Matches: to:(com...@noreply.github.com)
Do this: Star it, Apply label "gh/p1"

# Yellow label
Matches: to:(men...@noreply.github.com)
Do this: Apply label "gh/p2"

# Grey label
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.

Quinton Hoole

unread,
Feb 21, 2018, 8:17:46 PM2/21/18
to Jessie Frazelle, Erin Boyd, kubernetes-dev
For what it's worth I tend to rely on gmail's machine-learning-based priority inbox which seems to work well enough for me.  Training it is fairly simple and straightforward.

Q
 

Per Twitter conversation!


Do this: Skip Inbox, Mark as read

# Skip bot comments
Matches: (from:(notifications@github.com) (from:(k8s-merge-robot) OR

from:(Kubernetes Bot) OR from:(k8s-ci-robot) OR from:(Submit Queue)))
Do this: Skip Inbox, Mark as read

# Skip push notifications
Matches: to:(pu...@noreply.github.com)
Do this: Skip Inbox, Mark as read

# Red label on things assigned to me
Matches: to:(ass...@noreply.github.com)
Do this: Star it, Apply label "gh/p0", Mark it as important

# Orange label
Matches: to:(com...@noreply.github.com)
Do this: Star it, Apply label "gh/p1"

# Yellow label
Matches: to:(men...@noreply.github.com)
Do this: Apply label "gh/p2"

# Grey label
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
--


Jessie Frazelle
4096R / D4C4 DD60 0D66 F65A 8EFC  511E 18F3 685C 0022 BFF3
pgp.mit.edu

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-dev+unsubscribe@googlegroups.com.
To post to this group, send email to kubernetes-dev@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/CAEk6tExZ7SQK5pJS7KfeDhu%2B2VryJX1aAZ16mg-84ORgUA-3hA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Quinton Hoole
qui...@hoole.biz

j...@heptio.com

unread,
Mar 14, 2018, 2:36:58 PM3/14/18
to Kubernetes developer/contributor discussion
I finally got around to adapting this stuff to my workflow.

I used https://github.com/mesozoic/gmail-yaml-filters as a way to describe the filters.  You can use my yaml file as a starting place: https://gist.github.com/jbeda/d037be21b3b2a3c7a48a14252e29ecb5.

This stuff is a lot less useful if you use Inbox. While you can use these rules to create inbox bundles, it doesn't show other labels that are on a message.  And, from what I can tell, development on Inbox has slowed to a crawl/been abandoned (the iOS app doesn't support the iPhone X, for example).  I'm considering switching back to the mainstream gmail interface.

Joe
Per Twitter conversation!


Do this: Skip Inbox, Mark as read

# Skip bot comments
Matches: (from:(notifi...@github.com) (from:(k8s-merge-robot) OR

from:(Kubernetes Bot) OR from:(k8s-ci-robot) OR from:(Submit Queue)))
Do this: Skip Inbox, Mark as read

# Skip push notifications
Matches: to:(pu...@noreply.github.com)
Do this: Skip Inbox, Mark as read

# Red label on things assigned to me
Matches: to:(ass...@noreply.github.com)
Do this: Star it, Apply label "gh/p0", Mark it as important

# Orange label
Matches: to:(com...@noreply.github.com)
Do this: Star it, Apply label "gh/p1"

# Yellow label
Matches: to:(men...@noreply.github.com)
Do this: Apply label "gh/p2"

# Grey label
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.

Jessie Frazelle

unread,
Mar 14, 2018, 2:38:02 PM3/14/18
to Joe Beda, Kubernetes developer/contributor discussion

Stephen Augustus

unread,
Jun 10, 2019, 9:05:20 AM6/10/19
to Kubernetes developer/contributor discussion
This PR[1] has some best practices for using filters in Gmail. If y'all have some new opinions on the topic, could you do a quick review?

-- Stephen

[1] https://github.com/kubernetes/community/pull/3777
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages