Gnus development mailing list
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: ding@gnus.org
Subject: how to visit a message by its ID and group name?
Date: Fri, 24 Jul 2020 11:00:22 +0200	[thread overview]
Message-ID: <87lfj9wamx.fsf@mat.ucm.es> (raw)


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) #<bytecode 0x16b54c3a03de1fe8>) 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 



             reply	other threads:[~2020-07-24  9:01 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-24  9:00 Uwe Brauer [this message]
2020-07-24 12:11 ` dick.r.chiang
2020-07-24 16:08   ` Uwe Brauer
2020-07-24 17:20   ` Eric Abrahamsen
2020-07-24 22:01 ` Emanuel Berg
2020-07-25  7:26   ` Uwe Brauer
2020-07-25 15:57     ` Emanuel Berg
2020-07-26  6:35       ` Uwe Brauer
2020-07-26 15:17         ` Amin Bandali
2020-07-26 19:12           ` Uwe Brauer
2020-07-26 15:45         ` two questions on archive (was: Re: how to visit a message by its ID and group name?) Emanuel Berg
2020-07-26 16:03           ` Emanuel Berg
2020-07-27  8:32           ` [(message-news-p)???] (was: two questions on archive) Uwe Brauer
2020-07-27  8:43             ` [(message-news-p)???] Adam Sjøgren
2020-07-27 10:14               ` [(message-news-p)???] Uwe Brauer
2020-07-28  3:16             ` [(message-news-p)???] Emanuel Berg
2020-08-03 20:48           ` two questions on archive David Rogers
2020-08-03 20:56             ` Emanuel Berg
2020-07-26 15:39 ` how to visit a message by its ID and group name? Christian Barthel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfj9wamx.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).