Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@iseahound
Created April 18, 2019 04:36
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 iseahound/9239e0c7b55b27dbb2ff6390ad665147 to your computer and use it in GitHub Desktop.
Save iseahound/9239e0c7b55b27dbb2ff6390ad665147 to your computer and use it in GitHub Desktop.
Filters for Gmail that Mimic Category Tabs
<?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:1446704437822,1500607388537,1502583476499</id>
<updated>2019-04-18T04:30:08Z</updated>
<author>
<name>Edison Hua</name>
</author>
<entry>
<category term='filter'></category>
<title>Mail Filter</title>
<id>tag:mail.google.com,2008:filter:1446704437822</id>
<updated>2019-04-18T04:30:08Z</updated>
<content></content>
<apps:property name='hasTheWord' value='&quot;payment&quot; OR &quot;sale&quot; OR &quot;sales&quot; OR &quot;account balance&quot; OR &quot;account statement&quot; OR &quot;account summary&quot; OR &quot;all orders&quot; OR &quot;billing address&quot; OR &quot;card number&quot; OR &quot;card transaction&quot; OR &quot;current price&quot; OR &quot;customer support&quot; OR &quot;day shipping&quot; OR &quot;delivery address&quot; OR &quot;estimated delivery&quot; OR &quot;exclusions may&quot; OR &quot;free shipping&quot; OR &quot;grand total&quot; OR &quot;off until&quot; OR &quot;online and in-store&quot; OR &quot;order details&quot; OR &quot;order number&quot; OR &quot;order status&quot; OR &quot;payment method&quot; OR &quot;shipping address&quot; OR &quot;shipping to&quot; OR &quot;subject to availability&quot; OR &quot;subject to change&quot; OR &quot;total amount&quot; OR &quot;tracking number&quot; OR &quot;your cart&quot;'/>
<apps:property name='doesNotHaveTheWord' value='&quot;replying directly&quot;'/>
<apps:property name='label' value='Finance'/>
<apps:property name='shouldArchive' value='true'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
<entry>
<category term='filter'></category>
<title>Mail Filter</title>
<id>tag:mail.google.com,2008:filter:1500607388537</id>
<updated>2019-04-18T04:30:08Z</updated>
<content></content>
<apps:property name='hasTheWord' value='&quot;automated&quot; OR &quot;opt-out&quot; OR &quot;preference&quot; OR &quot;preferences&quot; OR &quot;unsubscribe&quot; OR &quot;don’t reply&quot; OR &quot;donotreply&quot; OR &quot;no-reply&quot; OR &quot;noreply&quot; OR &quot;not reply&quot; OR &quot;all rights reserved&quot; OR &quot;change your&quot; OR &quot;contact us&quot; OR &quot;e-mail settings&quot; OR &quot;email settings&quot; OR &quot;ignore this&quot; OR &quot;not respond&quot; OR &quot;not to receive&quot; OR &quot;please add&quot; OR &quot;prefer not to&quot; OR &quot;privacy notice&quot; OR &quot;privacy policy&quot; OR &quot;receive e-mail&quot; OR &quot;receive email&quot; OR &quot;receive emails&quot; OR &quot;receive these&quot; OR &quot;received this&quot; OR &quot;receiving this&quot; OR &quot;remove me&quot; OR &quot;service provider&quot; OR &quot;stop receiving&quot; OR &quot;view as&quot; OR &quot;view this&quot; OR &quot;viewing this&quot;'/>
<apps:property name='doesNotHaveTheWord' value='&quot;replying directly&quot; OR &quot;payment&quot; OR &quot;sale&quot; OR &quot;sales&quot; OR &quot;account balance&quot; OR &quot;account statement&quot; OR &quot;account summary&quot; OR &quot;all orders&quot; OR &quot;billing address&quot; OR &quot;card number&quot; OR &quot;card transaction&quot; OR &quot;current price&quot; OR &quot;customer support&quot; OR &quot;day shipping&quot; OR &quot;delivery address&quot; OR &quot;estimated delivery&quot; OR &quot;exclusions may&quot; OR &quot;free shipping&quot; OR &quot;grand total&quot; OR &quot;off until&quot; OR &quot;online and in-store&quot; OR &quot;order details&quot; OR &quot;order number&quot; OR &quot;order status&quot; OR &quot;payment method&quot; OR &quot;shipping address&quot; OR &quot;shipping to&quot; OR &quot;subject to availability&quot; OR &quot;subject to change&quot; OR &quot;total amount&quot; OR &quot;tracking number&quot; OR &quot;your cart&quot;'/>
<apps:property name='label' value='Notifications'/>
<apps:property name='shouldArchive' value='true'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
<entry>
<category term='filter'></category>
<title>Mail Filter</title>
<id>tag:mail.google.com,2008:filter:1502583476499</id>
<updated>2019-04-18T04:30:08Z</updated>
<content></content>
<apps:property name='doesNotHaveTheWord' value='&quot;payment&quot; OR &quot;sale&quot; OR &quot;sales&quot; OR &quot;account balance&quot; OR &quot;account statement&quot; OR &quot;account summary&quot; OR &quot;all orders&quot; OR &quot;billing address&quot; OR &quot;card number&quot; OR &quot;card transaction&quot; OR &quot;current price&quot; OR &quot;customer support&quot; OR &quot;day shipping&quot; OR &quot;delivery address&quot; OR &quot;estimated delivery&quot; OR &quot;exclusions may&quot; OR &quot;free shipping&quot; OR &quot;grand total&quot; OR &quot;off until&quot; OR &quot;online and in-store&quot; OR &quot;order details&quot; OR &quot;order number&quot; OR &quot;order status&quot; OR &quot;payment method&quot; OR &quot;shipping address&quot; OR &quot;shipping to&quot; OR &quot;subject to availability&quot; OR &quot;subject to change&quot; OR &quot;total amount&quot; OR &quot;tracking number&quot; OR &quot;your cart&quot; OR &quot;automated&quot; OR &quot;opt-out&quot; OR &quot;preference&quot; OR &quot;preferences&quot; OR &quot;unsubscribe&quot; OR &quot;don’t reply&quot; OR &quot;donotreply&quot; OR &quot;no-reply&quot; OR &quot;noreply&quot; OR &quot;not reply&quot; OR &quot;all rights reserved&quot; OR &quot;change your&quot; OR &quot;contact us&quot; OR &quot;e-mail settings&quot; OR &quot;email settings&quot; OR &quot;ignore this&quot; OR &quot;not respond&quot; OR &quot;not to receive&quot; OR &quot;please add&quot; OR &quot;prefer not to&quot; OR &quot;privacy notice&quot; OR &quot;privacy policy&quot; OR &quot;receive e-mail&quot; OR &quot;receive email&quot; OR &quot;receive emails&quot; OR &quot;receive these&quot; OR &quot;received this&quot; OR &quot;receiving this&quot; OR &quot;remove me&quot; OR &quot;service provider&quot; OR &quot;stop receiving&quot; OR &quot;view as&quot; OR &quot;view this&quot; OR &quot;viewing this&quot;'/>
<apps:property name='label' value='Correspondences'/>
<apps:property name='shouldArchive' value='true'/>
<apps:property name='sizeOperator' value='s_sl'/>
<apps:property name='sizeUnit' value='s_smb'/>
</entry>
</feed>
@iseahound
Copy link
Author

iseahound commented Apr 18, 2019

How the filters work:

  • Anything that is remotely about selling stuff takes priority and is marked as Finance
  • Anything that has the words "unsubscribe" or similar can NOT be responded to and are Notifications
  • Anything else is marked as Correspondences.

In other words first we separate emails into two categories - emails that are meant to be replied to and emails that can not be replied to.
Then we take the "emails that can not be replied to" category and separate the commercial offers of sales and discounts from everything else that can't be responded to. Google likes to have a separate tab for "Forums" which I feel is unnecessary, but take the "everything else that can't be responded to category" and separate that with forum specific keywords like "quoted post" or "view this topic". The idea is that Correspondences or what Gmail calls Primary consists of emails that can be acted upon within Gmail. Things that pester you to go to a different website to respond either falls into what Gmail calls "Forums" or "Updates" or Notifications.

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