Field Sent By (Sent By) on GMail with Google Apps Script

2

Search this site, both in English and Spanish, also check Google documentation and nothing.

When you use GMail, you can give permission to another person to use your mail, that includes being able to send emails in your name, that is what is happening with the mailbox that I have, it is a mailbox where several people have access (10 people) and can answer incoming mail, my query is, how can I know the amount of emails answered by each person who has access to this mailbox?

I am using GMail Meter (with several modifications adapted to my need) to be able to obtain several data, but what I could not obtain is that field.

In the screenshot you can see the following:

What I need is to list all the "sent by another [email protected]"

    
asked by Juan Alberto Loayza Cordero 02.03.2017 в 18:18
source

1 answer

0

I know that getRawContent () returns content equivalent to "see the original ", but I have not had the opportunity to reproduce the problem to give a more complete answer.

Having an email with the characteristics in question, look for the name / email address of the person who sent the message to identify the header of the message which will surely use the prefix "X-". Once you have identified the structure of the header, you can use a regular expression to extract the data.

References

answered by 18.04.2017 в 00:33