Skip to content

Instantly share code, notes, and snippets.

@ryangraham
Created August 9, 2011 21:24
Show Gist options
  • Save ryangraham/1135242 to your computer and use it in GitHub Desktop.
Save ryangraham/1135242 to your computer and use it in GitHub Desktop.
Mark As Read with Google Apps Script
/* We're having a Read/Unread War in a shared Google Apps mailbox.
* I need to figure out how to put this on like a 10 second trigger...
*/
function whatthe() {
var threads = GmailApp.getInboxThreads(0, 20);
GmailApp.markThreadsRead(threads);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment