From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Subject: Re: direct link to mails in gmail Date: Thu, 20 Oct 2011 13:41:57 +0000 (UTC) Message-ID: References: <4E9F8A54.5070007@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48911) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGssw-0002yd-Bx for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 09:42:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGssv-0005NH-3Y for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 09:42:14 -0400 Received: from lo.gmane.org ([80.91.229.12]:51927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGssu-0005N6-QI for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 09:42:12 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RGsst-0008RJ-4z for emacs-orgmode@gnu.org; Thu, 20 Oct 2011 15:42:11 +0200 Received: from 94-21-222-249.pool.digikabel.hu ([94.21.222.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Oct 2011 15:42:11 +0200 Received: from adatgyujto by 94-21-222-249.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 20 Oct 2011 15:42:11 +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: emacs-orgmode@gnu.org Rainer M Krug gmail.com> writes: > That is really nice - and I used it to link to gmail emails > from rtm - but there is one thing youi should be aware of: the > link is only valid, if the mail keeps the label. As an example: > If I copy the link from the inbox, paste it into an org file, > and *then* archive the mail, the link is, to my knowledge, not > valid any more, as it contains the label in it. So: it works, > but it is essential to copy either the link when the label is > selected which will be permanent, or, saver, copy the url in > the All Mail folder.Cheers and thanks for the tip,Rainer   Since any mail can be found under the All label by definition the simplest solution is extracting the message id from the end of the current url and then creating a new url pointing to All. This URL should always work unless the mail is deleted: https://mail.google.com/mail/?shva=1#all/