Gnus development mailing list
 help / color / mirror / Atom feed
From: John Wiegley <jwiegley@gmail.com>
To: ding@gnus.org
Subject: Creating an ephemeral group for a single article?
Date: Tue, 13 Sep 2011 23:57:40 -0500	[thread overview]
Message-ID: <m2sjnzoh4r.fsf@gmail.com> (raw)

I'd like to write a function that I could call from, say, Org.  It should take
a Message-Id, and create an ephemeral group containing that one message, found
by the same mechanism that uses gnus-refer-article-method -- so that it can
find the message wherever it might be.  And if it truly can't find the
message, it should ding and say that.

What I have now is a half solution, as it inserts the message into my INBOX
summary:

--8<---------------cut here---------------start------------->8---
(defun gnus-goto-article (message-id)
  (gnus-summary-read-group "INBOX" nil t)
  (gnus-summary-refer-article message-id))
--8<---------------cut here---------------end--------------->8---

Thanks,
  John




             reply	other threads:[~2011-09-14  4:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-14  4:57 John Wiegley [this message]
2011-09-15 20:32 ` Dave Abrahams
2011-09-26 20:19   ` Ted Zlatanov
2011-09-27 16:51     ` Dave Abrahams

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

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

  git send-email \
    --in-reply-to=m2sjnzoh4r.fsf@gmail.com \
    --to=jwiegley@gmail.com \
    --cc=ding@gnus.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.
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 NNTP newsgroup(s).