* How to create an empty ephemeral group?
@ 2011-07-28 3:27 Dave Abrahams
2011-07-28 19:38 ` [Solved] " Dave Abrahams
0 siblings, 1 reply; 2+ messages in thread
From: Dave Abrahams @ 2011-07-28 3:27 UTC (permalink / raw)
To: ding; +Cc: Andrew Cohen
Hi,
I'm trying to look up articles by message-Id, e.g. from Org links.
Here's what I'm using today:
--8<---------------cut here---------------start------------->8---
(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))
--8<---------------cut here---------------end--------------->8---
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
--8<---------------cut here---------------start------------->8---
(gnus-summary-refer-article "<some-message-id>")
--8<---------------cut here---------------end--------------->8---
...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?
TIA,
--
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Solved] How to create an empty ephemeral group?
2011-07-28 3:27 How to create an empty ephemeral group? Dave Abrahams
@ 2011-07-28 19:38 ` Dave Abrahams
0 siblings, 0 replies; 2+ messages in thread
From: Dave Abrahams @ 2011-07-28 19:38 UTC (permalink / raw)
To: ding; +Cc: John Wiegley
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-28 19:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-28 3:27 How to create an empty ephemeral group? Dave Abrahams
2011-07-28 19:38 ` [Solved] " Dave Abrahams
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).