From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79928 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.gnus.general Subject: Creating an ephemeral group for a single article? Date: Tue, 13 Sep 2011 23:57:40 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1315976952 28625 80.91.229.12 (14 Sep 2011 05:09:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2011 05:09:12 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28222@lists.math.uh.edu Wed Sep 14 07:09:09 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R3hie-0001v2-LJ for ding-account@gmane.org; Wed, 14 Sep 2011 07:09:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1R3hhF-00034s-53; Wed, 14 Sep 2011 00:07:41 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R3hhC-00034f-5x for ding@lists.math.uh.edu; Wed, 14 Sep 2011 00:07:38 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R3hgz-0004Ul-9i for ding@lists.math.uh.edu; Wed, 14 Sep 2011 00:07:35 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R3hgw-0001EM-DR for ding@gnus.org; Wed, 14 Sep 2011 07:07:22 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R3hgt-0001b0-CG for ding@gnus.org; Wed, 14 Sep 2011 07:07:19 +0200 Original-Received: from c-98-215-105-167.hsd1.il.comcast.net ([98.215.105.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Sep 2011 07:07:19 +0200 Original-Received: from jwiegley by c-98-215-105-167.hsd1.il.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 14 Sep 2011 07:07:19 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 17 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-105-167.hsd1.il.comcast.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin) Cancel-Lock: sha1:1kRpoQz6VdSB05jZbpq3RtF84QY= X-Spam-Score: -4.5 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79928 Archived-At: 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