Created
September 4, 2021 04:27
-
-
Save gsingh93/e1c098f75f5ec82ac11d9537e677ea60 to your computer and use it in GitHub Desktop.
Marked muted emails as read with Google AppsScript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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