May 07, 2006

Gmail persistent links

Here is how to create persistent links to your gmail messages:

# gmail url from atom feed:
# http://mail.google.com/mail?account_id=username%40gmail.com&message_id=10ae01bc43de52c1&view=conv&extsrc=atom
# turns into the following when you view it:
# http://mail.google.com/mail/?fs=1&tf=1&source=atom&view=cv&search=all&th=10ae01bc43de52c1
# both forms can be used as persistent urls.

To figure out the correct message_id (or th) to use, go to gmail in html view and read the link that points to your message.

This works even if you are not logged into gmail at the time, after asking for passwd etc. you are redirected to the correct message.

I should say correct conversation, these links bring up whole conversations. You can get the url pointing to an individual message in html view:

http://mail.google.com/mail/h/15ec0cgkplzcx/?d=u&n=3h&st=100&th=10ae01bc43de52c1&v=c#m_10a9636a75a772ec

But I could not make this work in a persistent format yet...

No comments: