Skip to content

Instantly share code, notes, and snippets.

@dan23njguy
dan23njguy / pdftotext.js
Created August 10, 2017 01:02
TypeError: Cannot find function getSubject in object GmailThread. (line 28, file "dl")
// GLOBALS
//Array of file extension which you would like to extract to Drive
var fileTypesToExtract = ['pdf'];
//Name of the folder in google drive in which files will be put
var folderName = 'New Order pdfs';
//Name of the label which will be applied after processing the mail message
var labelName = 'Orderdownloaded';
function GmailToDrive(){
//build query to search emails