I integrate Gmail with the task manager using the Chrome plugin. I would like to receive a link to a Gmail conversation when a user has just added a message and linked the corresponding task. Each Gmail conversation has an associated URL, and it is located in the address bar when the user reads the conversation. If the user receives an email and then responds to it, the URL is directly in the address bar.
However, if the user creates a new message (not in response to an existing stream), the only way to find out the URL for the resulting conversation is to go to Sent mail and click on the sent message.
Given all the Gmail APIs (IMAP, gadgets, the Chrome extension bent on the page), and given that the user just clicked "Submit" in a new message, is there a way to programmatically retrieve the URL from the conversation?
Peeja source share