Skip to content

Instantly share code, notes, and snippets.

@marefr
Last active July 4, 2018 09:02
Show Gist options
  • Save marefr/9167c2e31466f6316c1cba118874e74f to your computer and use it in GitHub Desktop.
Save marefr/9167c2e31466f6316c1cba118874e74f to your computer and use it in GitHub Desktop.
Gmail filters
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
<title>Mail Filters</title>
<id>tag:mail.google.com,2008:filters:1523526662853,1523526694769,1523538108832,1523538108832</id>
<updated>2018-07-04T08:23:30Z</updated>
<author>
<name>YOUR_FULL_NAME</name>
<email>YOUR_EMAIL</email>
</author>
<entry>
<category term='filter'></category>
<title>My Github notifications</title>
<id>tag:mail.google.com,2008:filter:1523526662853</id>
<updated>2018-07-04T08:23:30Z</updated>
<content></content>
<apps:property name='hasTheWord' value='from:[email protected] AND to:YOUR_EMAIL'/>
<apps:property name='label' value='MY_GITHUB_LABEL'/>
<apps:property name='shouldArchive' value='true'/>
<apps:property name='shouldAlwaysMarkAsImportant' value='true'/>
<apps:property name='smartLabelToApply' value='^smartlabel_group'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
<entry>
<category term='filter'></category>
<title>My assigned Github issues/PR's</title>
<id>tag:mail.google.com,2008:filter:1523526694769</id>
<updated>2018-07-04T08:23:30Z</updated>
<content></content>
<apps:property name='hasTheWord' value='from:[email protected] AND to:YOUR_EMAIL AND to:[email protected]'/>
<apps:property name='label' value='MY_GITHUB_LABEL/assigned'/>
<apps:property name='shouldAlwaysMarkAsImportant' value='true'/>
<apps:property name='smartLabelToApply' value='^smartlabel_group'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
<entry>
<category term='filter'></category>
<title>My Github activty</title>
<id>tag:mail.google.com,2008:filter:1523538108832</id>
<updated>2018-07-04T08:23:30Z</updated>
<content></content>
<apps:property name='hasTheWord' value='(from:[email protected] AND to:YOUR_EMAIL AND (to:[email protected] OR to:[email protected]))'/>
<apps:property name='label' value='MY_GITHUB_LABEL/activity'/>
<apps:property name='shouldMarkAsRead' value='true'/>
<apps:property name='smartLabelToApply' value='^smartlabel_group'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
<entry>
<category term='filter'></category>
<title>My Github mentions</title>
<id>tag:mail.google.com,2008:filter:1523538108832</id>
<updated>2018-07-04T08:23:30Z</updated>
<content></content>
<apps:property name='hasTheWord' value='from:[email protected] AND to:YOUR_EMAIL AND to:[email protected] OR to:[email protected]'/>
<apps:property name='label' value='MY_GITHUB_LABEL/mentions'/>
<apps:property name='shouldAlwaysMarkAsImportant' value='true'/>
<apps:property name='smartLabelToApply' value='^smartlabel_group'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
</feed>
<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:apps='http://schemas.google.com/apps/2006'>
<title>Mail Filters</title>
<id>tag:mail.google.com,2008:filters:1523523997122</id>
<updated>2018-07-04T08:23:30Z</updated>
<author>
<name>YOUR_FULL_NAME</name>
<email>YOUR_EMAIL</email>
</author>
<entry>
<category term='filter'></category>
<title>Grafana activity (my own notifications excluded) (</title>
<id>tag:mail.google.com,2008:filter:1523523997122</id>
<updated>2018-07-04T08:23:30Z</updated>
<content></content>
<apps:property name='hasTheWord' value='list:(grafana.grafana.github.com) AND -to:YOUR_EMAIL'/>
<apps:property name='label' value='OTHER_GITHUB_LABEL/grafana'/>
<apps:property name='shouldArchive' value='true'/>
<apps:property name='smartLabelToApply' value='^smartlabel_group'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
</feed>
@marefr
Copy link
Author

marefr commented Jul 4, 2018

Before importing in Gmail replace the following

  • YOUR_FULL_NAME
  • YOUR_EMAIL
  • MY_GITHUB_LABEL
    • when imported will create a label with that name on root level, for example Github (mine)
  • OTHER_GITHUB_LABEL
    • when imported will create a label with that name on root level, for example Github (other)

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