Skip to content

Instantly share code, notes, and snippets.

@erikdstock
Last active May 24, 2024 10:16
Show Gist options
  • Save erikdstock/5d6770b2accec3124e8d15f394861c06 to your computer and use it in GitHub Desktop.
Save erikdstock/5d6770b2accec3124e8d15f394861c06 to your computer and use it in GitHub Desktop.
gmail sorting and filters

source

  1. Move all emails older than 7 days to Archive/All Mail
in:inbox older_than:7d -is:starred
  1. Move all emails you are cc'ed on older than 3 days to Archive/All Mail
cc:me older_than:3d -is:starred
  1. Move emails that don't have your name in them and are older than 3 days to Archive/All Mail
-erik older_than:3d -is:starred
  1. Move all newsletter and mailing list emails to your Readings folder
in:inbox label:^unsub
  1. Move remaining mailing list emails to "Readings" by searching for common mailing list terms
"privacy policy" OR "terms & conditions" OR "preferences" OR "view in browser" OR "view as a web page."
  1. Calendar notifications
calendar-notification@google.com OR (invite.ics OR invite.vcs) OR subject:(updated invitation:) google calendar 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment