From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/58255 Path: main.gmane.org!not-for-mail From: Sacha Chua Newsgroups: gmane.emacs.gnus.general Subject: Canonical way to find messages by message-id Date: Sun, 15 Aug 2004 23:04:35 +0800 Sender: ding-owner@lists.math.uh.edu Message-ID: <87vffkcuik.fsf@sacha.ateneo.edu> Reply-To: Sacha Chua NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092606631 2300 80.91.224.253 (15 Aug 2004 21:50:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 15 Aug 2004 21:50:31 +0000 (UTC) Original-X-From: ding-owner+M6796@lists.math.uh.edu Sun Aug 15 23:50:22 2004 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BwStS-0006YA-00 for ; Sun, 15 Aug 2004 23:50:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1BwSpL-00024n-00; Sun, 15 Aug 2004 16:46:07 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1BwMpN-0001T0-00 for ding@lists.math.uh.edu; Sun, 15 Aug 2004 10:21:45 -0500 Original-Received: from justine.libertine.org ([66.139.78.221] ident=postfix) by util2.math.uh.edu with esmtp (Exim 4.30) id 1BwMpM-00063B-Dq for ding@lists.math.uh.edu; Sun, 15 Aug 2004 10:21:44 -0500 Original-Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by justine.libertine.org (Postfix) with ESMTP id 974003A0035 for ; Sun, 15 Aug 2004 10:21:41 -0500 (CDT) Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BwMpF-00077B-00 for ; Sun, 15 Aug 2004 17:21:39 +0200 Original-Received: from 202.128.54.94 ([202.128.54.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Aug 2004 17:21:36 +0200 Original-Received: from sacha by 202.128.54.94 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 15 Aug 2004 17:21:36 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 43 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 202.128.54.94 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:NXp+R0ZRP/9faZjZ3nhX3G/2fEM= Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:58255 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:58255 Hello, everyone! What is the canonical way to find a message by message ID? I maintain planner.el, and right now we're doing it with this code snippet: (defun planner-gnus-browse-url (url) "If this is a Gnus URL, jump to it." (when (string-match "^gnus://\\(.+\\)/\\(.+\\)" url) (let ((group (match-string 1 url)) (article (match-string 2 url))) (gnus-fetch-group group 1) (or (gnus-summary-goto-article article nil t) (when (fboundp 'gnus-summary-insert-cached-articles) (gnus-summary-insert-cached-articles) (gnus-summary-goto-article article nil t)) (message "Message could not be found.")) t))) where an example URL would be gnus://mail.planner/<20040813162910.GA3241@khazad-dum> Unfortunately, (gnus-fetch-group group 1) fails when the most recent message is no longer in the group, and we occasionally have problems with cached articles. (gnus-fetch-group group) sorta works if we remember to specify a large enough number of messages, but the prompt can be slightly annoying. Loading all messages and waiting for the summary to display takes a lot of time. Is there a way to quickly jump to a specific message given the message ID, and then display the article and the summary buffer with just that message in it? I tried tracing through some functions in the summary and article code, but got pretty lost. Thanks for your help! -- Sacha Chua - open source geekette interests: emacs, gnu/linux, making computer science education fun wearable computing, personal information management http://sacha.free.net.ph/ - PGP Key ID: 0xE7FDF77C