Skip to content

Instantly share code, notes, and snippets.

@koluku
Created December 16, 2018 23:53
Show Gist options
  • Save koluku/275b800bcba00fb79c623541b8d51dd6 to your computer and use it in GitHub Desktop.
Save koluku/275b800bcba00fb79c623541b8d51dd6 to your computer and use it in GitHub Desktop.
function main() {
var threads = GmailApp.search("-in:inbox is:unread");
threads.forEach(function(thread){
thread.markRead();
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment