emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tom <adatgyujto@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: direct link to mails in gmail
Date: Thu, 20 Oct 2011 13:41:57 +0000 (UTC)	[thread overview]
Message-ID: <loom.20111020T153700-196@post.gmane.org> (raw)
In-Reply-To: CAGhLh6G3xLCXEC6xnXNp5+GzDFoQ0T710z5nnPXygM=iTEWrNw@mail.gmail.com

Rainer M Krug <r.m.krug <at> 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/<msgid>

  parent reply	other threads:[~2011-10-20 13:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-20  2:41 direct link to mails in gmail Torsten Wagner
2011-10-20  7:06 ` Rainer M Krug
2011-10-20  7:30   ` Sebastien Vauban
2011-10-20  7:33     ` Carsten Dominik
2011-10-20 13:54       ` Sebastien Vauban
2011-10-20  7:42     ` Rainer M Krug
2011-10-20 12:56       ` Otto Pichlhöfer
2011-10-20 13:41   ` Tom [this message]
2011-10-22  6:48     ` Niels Giesen
2011-10-22 10:01       ` suvayu ali
2011-10-22 11:43         ` Niels Giesen
2011-10-22 11:57           ` suvayu ali
2011-10-22 12:36             ` Niels Giesen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20111020T153700-196@post.gmane.org \
    --to=adatgyujto@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).