google-api-nodejs-client
google-api-nodejs-client copied to clipboard
How to derive Gmail message ID
I want to use the googleapis/gmail
library to send emails through my gmail account. I also want to store the message-id
in order to send follow-up emails using references
.
However, the id
returned by the library does not match the message-id
in gmail -> view original email.
Library returns:
id:
1872208dcc053b54
threadId:
1872208dcc053b54
What I see on gmail
How do get the message-id
as seen on gmail when sending an email?
Try using Regex to extract it!