Skip to content

Instantly share code, notes, and snippets.

@h
Last active March 3, 2021 01:49
Show Gist options
  • Save h/3fae9cf382ff97d0c9adb504e9eb0c3c to your computer and use it in GitHub Desktop.
Save h/3fae9cf382ff97d0c9adb504e9eb0c3c to your computer and use it in GitHub Desktop.
Delete all Email Subscriptions
Add the following gmail filters to trash all messages from useless subscription lists.
Do this for both gmail filters below:
1. Login to Gmail and click Settings->Filters->Create a new filter
2. Paste the Gmail filter into the "Has the words" text field
3. Click "Create filter with this Search »", then "Delete it", then "Create filter"
# Gmail filter that deletes all subscription spam (anything with an "unsubscribe" button):
subject:(-re -fwd -fw) ("unsubscribe" OR opt-out OR "opt out" OR "mail preferences" OR "email preferences" OR "manage notifications" OR "manage your notifications" OR "manage alerts" OR "alert preferences") -{from:[email protected] from:facebook.com from:linkedin.com from:ealerts.bankofamerica.com from:mail.goodreads.com from:airbnb.com from:facebookmail.com from:google.com}
# Gmail filter that deletes useless "Terms Of Service" updates:
subject:(updates OR updated OR update OR updating OR changes OR changed OR changing "terms of service" OR "terms of use" OR policies OR policy OR conditions OR agreement OR agreements -(re -"we're") -fwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment