From: Dave Abrahams <dave@boostpro.com>
To: ding@gnus.org
Cc: John Wiegley <johnw@boostpro.com>
Subject: [Solved] How to create an empty ephemeral group?
Date: Thu, 28 Jul 2011 15:38:46 -0400 [thread overview]
Message-ID: <m21uxa9ovt.fsf@pluto.luannocracy.com> (raw)
In-Reply-To: <m27h73ytii.fsf@pluto.luannocracy.com>
on Wed Jul 27 2011, Dave Abrahams <dave-AT-boostpro.com> wrote:
> Hi,
>
> I'm trying to look up articles by message-Id, e.g. from Org links.
> Here's what I'm using today:
>
> (defun gnus-goto-article (message-id)
> (let ((nnir-imap-default-search-key "imap"))
> (gnus-group-make-nnir-group
> nil
> `((query . ,(concat "header message-id " message-id))
> (criteria . "")
> (server . "nnimap:BoostPro") )))
> (gnus-summary-refer-article message-id))
>
> This is decent, but it would be so much cooler if I could use
> gnus-refer-article-method to look for messages that might be in
> newsgroups, gmane, google, etc.
>
> So I figured I'd just create an empty ephemeral group and then
>
> (gnus-summary-refer-article "<some-message-id>")
>
> ...which I have proved to myself works in an arbitrary group. But I
> can't figure out how to create an empty ephemeral group.
>
> Hints?
Solved:
(defun gnus-goto-article (message-id)
(gnus-group-read-ephemeral-group
message-id
`(nneething ,temporary-file-directory) t nil nil nil nil 0)
(gnus-summary-refer-article message-id))
This is kind of a nasty hack, but it works. Would love to dispense with
the nneething group...
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
prev parent reply other threads:[~2011-07-28 19:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-28 3:27 Dave Abrahams
2011-07-28 19:38 ` Dave Abrahams [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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m21uxa9ovt.fsf@pluto.luannocracy.com \
--to=dave@boostpro.com \
--cc=ding@gnus.org \
--cc=johnw@boostpro.com \
/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).