emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: stable links to gnus messages?
Date: Tue, 14 Aug 2012 11:21:31 +0200	[thread overview]
Message-ID: <m2has5kew4.fsf@polytechnique.org> (raw)
In-Reply-To: <877gt1yl4n.fsf@gnu.org> (Bastien's message of "Tue, 14 Aug 2012 09:43:04 +0200")

Bastien <bzg@gnu.org> writes:

> Hi Alan,
>
> Alan Schmitt <alan.schmitt@polytechnique.org> 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

      reply	other threads:[~2012-08-14  9:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-14  7:09 stable links to gnus messages? Alan Schmitt
2012-08-14  7:43 ` Bastien
2012-08-14  9:21   ` Alan Schmitt [this message]

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=m2has5kew4.fsf@polytechnique.org \
    --to=alan.schmitt@polytechnique.org \
    --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).