Gnus development mailing list
 help / color / mirror / Atom feed
* how to visit a message by its ID and group name?
@ 2020-07-24  9:00 Uwe Brauer
  2020-07-24 12:11 ` dick.r.chiang
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Uwe Brauer @ 2020-07-24  9:00 UTC (permalink / raw)
  To: ding


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 



^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2020-08-03 20:56 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24  9:00 how to visit a message by its ID and group name? Uwe Brauer
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

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).