Sandro Turriate

Coder, cook, explorer

Advanced Gmail search to help you organize your inbox.

Jan 7, 2021

TLDR

Paste this snippet into your Gmail search bar:

1
unsubscribe -shipping -payment -card -"YOUR ADDRESS" -order -package -track -"tracking number" -"order number" -confirmation -from:Robinhood -from:YOURBANK -from:"Whole Foods Market" in:inbox is:unread older_than:7d -is:important -is:starred -is:snoozed has:nouserlabels -has:attachment

This search finds mail that’s unread in my inbox, 7 days old, containing the word “unsubscribe,” not containing my mailing address or terms that look like an order was placed, and mail that does not appear “important,” by Gmail’s standards or because of some other user interaction (labeling, snoozing, starring, etc.)

I use this filter to help me find mail that I need to unsubscribe from and delete!

Let’s break down what the query does.

unsubscribe
contains the word “unsubscribe”
-shipping -payment -"tracking number"
Does not contain the word “shipping,” “payment,” or “tracking number”
"YOUR ADDRESS"
Type in your mailing address. I want to keep any mail that contains my mailing address because it’s likely about something I purchased.
-from:Robinhood -from:YOURBANK -from:"Whole Foods Market"
Do not find email coming from Robinhood, my bank, or Whole Foods
in:inbox
only find mail in my inbox.
is:unread
Email I haven’t opened
older_than:7d
Email received over 7 days ago.
-is:important
Not labeled as important.
-is:starred
Email that has not been starred.
-is:snoozed
Email that has not been snoozed.
has:nouserlabels
Email that has not already been sorted or filtered
-has:attachment
Email without an attachment. I give an “unsubscribe” email with an attachment high priority than other emails.