From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84592 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: getting article numbers from message-ids? Date: Mon, 02 Jun 2014 23:13:16 +0800 Message-ID: <874n03jqer.fsf@ericabrahamsen.net> References: <87lhtfk9qo.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401721871 6506 80.91.229.3 (2 Jun 2014 15:11:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2014 15:11:11 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32837@lists.math.uh.edu Mon Jun 02 17:11:04 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WrTt3-0001HG-2C for ding-account@gmane.org; Mon, 02 Jun 2014 17:10:57 +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 1WrTsE-0001dr-Fs; Mon, 02 Jun 2014 10:10:06 -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 1WrTsB-0001df-Qv for ding@lists.math.uh.edu; Mon, 02 Jun 2014 10:10:03 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WrTsA-0002kA-JS for ding@lists.math.uh.edu; Mon, 02 Jun 2014 10:10:03 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WrTs8-0001Z9-JV for ding@gnus.org; Mon, 02 Jun 2014 17:10:00 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WrTs2-0000Qa-53 for ding@gnus.org; Mon, 02 Jun 2014 17:09:54 +0200 Original-Received: from 123.122.40.183 ([123.122.40.183]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Jun 2014 17:09:54 +0200 Original-Received: from eric by 123.122.40.183 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Jun 2014 17:09:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 37 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 123.122.40.183 User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:ZgX9gM33NFd02K/70ebIsGlCg/0= X-Spam-Score: -1.4 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84592 Archived-At: Eric Abrahamsen writes: > I'm starting with a list of org-gnus links, and trying to create an > ephemeral group (via nnir) displaying those messages. I think > everything's working, except that what I've got is each message's > Message-ID, and nnir wants article numbers: > > Incoming: "nnimap+Server:group-name#A9ED-1B41EF8FC63E@example-server.fr" > > Outgoing: ["group-name" ARTICLE_NUMBER 100] > > I could, for each message link, use org-gnus-open to actually visit the > message in its home group and get the article with > `gnus-summary-article-number', but I'm hoping there's a more direct way. > > These message could be coming from any backend -- I can't know for sure > if they'll be imap, or maildir, or what have you. > > Can the registry be used to save information like this? It would be nice > to look first in the registry, which I assume would be quickest, and > then fall back to something more manual and expensive. > > Anyway, any tips would be much appreciated! Answering my own question: (gnus-request-head "A9ED-1B41EF8FC63E@example-server.fr" "nnimap+Server:group-name") => ("group-name" . ARTICLE_NUMBER) No buffer setup or teardown, no messing about, extremely fast response. A highly profitable two-and-a-half hours spent with the gnus codebase :) E