Before we move on, let's take a look at the key characters in the Empire of Britannia.
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 characters
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]); | |
}; |