Assume that we have a system that sends out daily reports over email in the form of attached CSV files and that we want to access these.
function getCsvFromGmail() {
// Get the newest Gmail thread based on sender and subject
var gmailThread = GmailApp.search("from:
[email protected] sub...