From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Re: stable links to gnus messages? Date: Tue, 14 Aug 2012 11:21:31 +0200 Message-ID: References: <877gt1yl4n.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:53502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1DJm-0000EF-8B for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 05:21:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1DJh-0000IA-Nk for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 05:21:42 -0400 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:36608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1DJh-0000Hw-H9 for emacs-orgmode@gnu.org; Tue, 14 Aug 2012 05:21:37 -0400 In-Reply-To: <877gt1yl4n.fsf@gnu.org> (Bastien's message of "Tue, 14 Aug 2012 09:43:04 +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 Bastien writes: > Hi Alan, > > Alan Schmitt writes: > >> I'm starting to play with org-store-link, and I've noticed that if I >> create a link to a gnus message, this link will be broken if I move the >> message to another mailbox. Is it possible to have a stable link that >> would survive such a move? > > You might want to use gnus-registry and the nnregistry backend. Thanks, that worked great. The only part I'm still trying to figure out is to find in which group the mail is in (nnregistry is finding it, and displaying it, but the modeline mentions the old group and not the one where the message has been moved to). I guess this is also why displaying the thread does not work. For the record, here is the settings I've used: #+begin_src elisp ;; Registry, to allow the finding of messages ;; From http://www.gnu.org/software/emacs/manual/html_node/gnus/The-Gnus-Registry.html#The-Gnus-Registry (setq gnus-registry-split-strategy 'majority gnus-registry-ignored-groups '(("Junk" t) ("TrainSpam" t) ("notmuch" t) ("Trash" t) ("Chats" t) ("Contacts" t) ("Emailed Contacts" t) ("Notes" t)) gnus-registry-max-entries nil ;; this is the default gnus-registry-track-extra '(sender subject)) (gnus-registry-initialize) (setq gnus-refer-article-method '(current (nnregistry))) #+end_src