Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting the thread id in Gmail

I'm looking for a way to figure out how to get the thread id for a particular email on Gmail, just before it is sent OR at the point where the send button is clicked.

Currently, I'm working with Javascript in order to scrape other items off the email and store them in a record which works pretty well for everything except the thread id.

The thread ID can be found after I send the email within the URL:

https://mail.google.com/mail/u/0/?shva=1#inbox/13ddda647539dcca

In this case, the thread id (if I'm right - is 13ddda647539dcca.

Any help would be appreciated.

like image 796
HappyCry Avatar asked Oct 04 '22 12:10

HappyCry


1 Answers

If anyone is still interested - You can retrieve the thread id after the email is sent by observing the that appears at the top of the page. This span contains a link which has an attribute named 'param' which has the thread-id.

like image 164
HappyCry Avatar answered Oct 10 '22 15:10

HappyCry