From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27358 invoked from network); 24 Jul 2020 09:01:31 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with ESMTPUTF8; 24 Jul 2020 09:01:31 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1jytZL-002mlE-S0; Fri, 24 Jul 2020 04:00:43 -0500 Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1jytZH-002mjH-9u for ding@lists.math.uh.edu; Fri, 24 Jul 2020 04:00:39 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1jytZE-00BRR5-L4 for ding@lists.math.uh.edu; Fri, 24 Jul 2020 04:00:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:Message-ID:Date:Subject:From:To: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=9utl/lcN2WAl1cSME/N2FRNThHqhEX23JhbhTBnenuk=; b=FKEzKkPFQw1a4Nf1XXJwN4HypW ulDGbyGwlK6Qdt1mdl4niNk/d8RjnvOULM1KgLCsvW/aAt5EM1oGttsYlhJ63pEPAx+9wb6pQybgF w2vUoaCCSKmp7cOt45CQZXJoERxkqJt+x6wGrFXqLDx5WnM6gL53b9PvYLico8+Eks0M=; Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214] helo=ciao.gmane.io) by quimby with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jytZ6-00005S-AV for ding@gnus.org; Fri, 24 Jul 2020 11:00:31 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jytZ5-0006dX-NM for ding@gnus.org; Fri, 24 Jul 2020 11:00:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Uwe Brauer Subject: how to visit a message by its ID and group name? Date: Fri, 24 Jul 2020 11:00:22 +0200 Message-ID: <87lfj9wamx.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:sx+GXR4dE4ZnCzpDTy+9hX0E7JM= Mail-Copies-To: never Header: Newsgroups List-ID: Precedence: bulk Hi I use the following code since quite a while Provided by Ted Zlatanov (defun message-to-diary () (make-diary-entry (concat (format-time-string "%B %d, %Y %H:%M" (gnus-date-get-time (message-fetch-field "date"))) (if (message-fetch-field "newsgroups") (concat " Sent news To: " (message-fetch-field "newsgroups")) (concat " Sent mail To: " (message-fetch-field "to"))) " Subject: \"" (message-fetch-field "subject") "\"" " Message-ID: " (message-fetch-field "message-id") " Group: nnml+archive:sent-mail " )) (save-buffer "diary")) (add-hook 'message-sent-hook 'message-to-diary) (defun gnus-goto-article (message-id) (interactive "sMessage-ID: ") (let ((info (nnml-find-group-number message-id))) (gnus-summary-read-group (concat "nnml:" (car info)) nil t) (gnus-summary-goto-article (cdr info) nil t))) I tried to use gnus-goto-message, but it did not work Debugger entered--Lisp error: (wrong-number-of-arguments #f(compiled-function (id server) #) 1) nnml-find-group-number("87sgdhwawy.fsf@mat.ucm.es") gnus-goto-article("87sgdhwawy.fsf@mat.ucm.es") funcall-interactively(gnus-goto-article "87sgdhwawy.fsf@mat.ucm.es") call-interactively(gnus-goto-article record nil) command-execute(gnus-goto-article record) execute-extended-command(nil "gnus-goto-article" "gnus-go") funcall-interactively(execute-extended-command nil "gnus-goto-article" "gnus-go") call-interactively(execute-extended-command nil nil) command-execute(execute-extended-command) Does anybody know how to visit a message by its ID and group name? Regards Uwe Brauer