Skip to content

Instantly share code, notes, and snippets.

@sp2hari
Created July 3, 2020 20:51
Embed
What would you like to do?
Google Script for Inbox Pause
function unPause() {
var pausedLabel = GmailApp.getUserLabelByName("Inbox-Paused");
if (pausedLabel) {
var threads = pausedLabel.getThreads();
for (var i = 0; i < threads.length; i++) {
threads[i].moveToInbox();
pausedLabel.removeFromThread(threads[i]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment