Created
December 24, 2013 07:10
-
-
Save sweenzor/8109816 to your computer and use it in GitHub Desktop.
Gmail inbox audit logging
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
/** | |
* Retrieves all inbox threads and tags them | |
* that way, when you accidentally archive something, | |
* you can figure out what it was! | |
* https://script.google.com/macros/ | |
*/ | |
function auditLogInbox() { | |
var threads = GmailApp.getInboxThreads(); | |
var label = GmailApp.getUserLabelByName("auditlog"); | |
label.addToThreads(threads); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment