From mboxrd@z Thu Jan 1 00:00:00 1970 From: Niels Giesen Subject: Re: direct link to mails in gmail Date: Sat, 22 Oct 2011 14:36:57 +0200 Message-ID: <871uu5b3ti.fsf@gmail.com> References: <4E9F8A54.5070007@gmail.com> <87ipnhb6af.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:50475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHaov-0003MI-PJ for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 08:37:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RHaou-0007Ys-Jl for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 08:37:01 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:39894) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RHaou-0007Yi-Cn for emacs-orgmode@gnu.org; Sat, 22 Oct 2011 08:37:00 -0400 Received: by eye4 with SMTP id 4so5222786eye.0 for ; Sat, 22 Oct 2011 05:36:59 -0700 (PDT) In-Reply-To: (suvayu ali's message of "Sat, 22 Oct 2011 13:57:49 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: emacs-orgmode@gnu.org, Tom suvayu ali writes: > On Sat, Oct 22, 2011 at 13:43, Niels Giesen wrote: >> suvayu ali writes: >> >>> On Sat, Oct 22, 2011 at 8:48 AM, Niels Giesen wrote: >>>> Too bad I have set up Emacs to use emacs-w3m, in which this does not work -- >>>> probably the hash part is handled by client-side JavaScript. >>> >>> You can try this: >>> >>> https://mail.google.com/mail/h/ >> >> That link simply visits the HTML-version of gmail, but does not let one >> select an article via the URL - as far as I know. >> > > In that case you can try the "Message text garbled?" or "Show original" link. Ok. This one seems to do the trick to show the original of a single message: https://mail.google.com/mail/h/?&v=om&th=MESSAGE-ID And this one can be used for conversation view: https://mail.google.com/mail/h/?&v=c&s=l&th=MESSAGE-ID It seems v=c means view=conversation. But this is not enough by and of itself, s=l is necessary too, whatever that means. Left out, your Inbox will be presented. Summing up, if you want to visit gmails articles without using JavaScript, you may use this: #+LINK: gmail https://mail.google.com/mail/h/?&v=c&s=l&th= for HTML-only browsers/settings or #+LINK: gmail https://mail.google.com/mail/?shva=1#all/ for JS-enabled browsers or something like #+begin_src emacs-lisp (org-add-link-type "gmail" (lambda (link) (browse-url ;; or "https://mail.google.com/mail/?shva=1#all/" for js-browser (concat "https://mail.google.com/mail/h/?&v=c&s=l&th=" link)))) #+end_src to have the link type globally. Then use this in an Org file: [[gmail:1331f3490dff1205][conversation about gmail links]] This way, if Google decides to change it's url structure, all you have to do is redefine your link type, instead of all email links. > Hope that helps. -- http://pft.github.com/