title: How can I reliably link to a Gmail conversation given a thread ID if the user is logged into multiple accounts?
body: <p>If you're logged into multiple Gmail accounts, Google changes the URLs to reference which account you're currently using. For example:</p>
  
  <p><code>https://mail.google.com/mail/u/0/#inbox/138d85da096d2126</code> for a convo in my primary account vs
  <code>https://mail.google.com/mail/u/1/#inbox/128cfe99d055805d</code> for a convo in another one of my accounts.</p>
  
  <p>Note that one account has <code>/u/0</code> in the URL and the other has <code>u/1</code>.</p>
  
  <p>My question is: given that I've used the Gmail REST API to find the ID of a particular thread, how can I reliably link to that thread? Is there any programmatic way to ask Google which accounts the user is logged into, and what sequence (0, 1, 2, ...) each account falls under?</p>