I checked out the following question which has an example relating Gmail and Google Sheets: How to use Google App Scripts to retrieve Gmail emails in a customised way?
I'm wondering how I could add additional parameters: message date, sender email, message subject, full message body.
The problem with the above script is it retrieves the last email address from any thread in the inbox. I'm concerned with threads as well as individual messages.
Last, I'd love to add a clause that specifies to only grab message data for those messages that I've tagged in Gmail.
Here's some documentation on Gmail API and Google Sheets.