Skip to content

Instantly share code, notes, and snippets.

@gsingh93
Created September 4, 2021 04:27
Show Gist options
  • Save gsingh93/e1c098f75f5ec82ac11d9537e677ea60 to your computer and use it in GitHub Desktop.
Save gsingh93/e1c098f75f5ec82ac11d9537e677ea60 to your computer and use it in GitHub Desktop.
Marked muted emails as read with Google AppsScript
// Create a new AppScript project (https://script.google.com/home/start)
// and schedule this to be run every hour
function markMutedAsRead() {
var threads = GmailApp.search('is:muted is:unread');
for (var i = 0; i < threads.length; i++) {
threads[i].markRead();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment