-
-
Save carlosf/25d6804bafe9102b45d2 to your computer and use it in GitHub Desktop.
Revisions
-
milesgrimshaw created this gist
Sep 25, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ function processInbox() { // get all threads in inbox var threads = GmailApp.getInboxThreads(); data_id = '1t70IDdWcaJzCIIaNWm2nHSPKzetHfTxhkKc9jKkAlpA' var dataSs = SpreadsheetApp.openById(data_id); var sheet = dataSs.getSheets()[0]; var current_date = new Date(); sheet.appendRow([current_date, current_date.toISOString(),threads.length]); };