0
votes

Hi let me start by just saying a big thank you to all involved hear. Bering a little rusty in scripting theinfo in stackoverflow has been fantastic Thank you.

My Question When I look at the header of a gmail via show original are the variables names used eg "Return-Path", "Sender", "X-Mailer" can they be used in a script to acess the entries in these variables for example var messages = threads[i].getX-Mailers(); or Logger.log(messages[j].getReturn-Path());

The reason for asking is looking at the examples of scripts for Google sheets & my lack of knowledge I was interested if the variables names wher all acessable via a script

My apologies for any errors but have had to dust off the programming gray cells

Thank you for any advice

1

1 Answers

0
votes

I think you'll have to explore the Gmail service and maybe the Class GmailMessage in particular. That should get you started...