* [Q] How do I access a message using message id on mailman?
@ 2023-04-26 13:59 Ruijie Yu via Users list for the GNU Emacs text editor
2023-04-26 14:41 ` andrés ramírez
0 siblings, 1 reply; 4+ messages in thread
From: Ruijie Yu via Users list for the GNU Emacs text editor @ 2023-04-26 13:59 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I know this is somewhat tangential to Emacs, but hopefully someone who
frequents the online ML archives (or knows its internals) has the answer
to this.
I'm writing a function that opens up the archive website for a given
mailing list message. This (it seems to me, at least) requires that the
archive site is capable of converting the message id to a browsable URL.
However, when I tried to search for a recent message id in this list on
lists.gnu.org, the search failed. In addition, the URL for any given
mail only says "N-th mail" in "which day", which I don't think can be
reliably concluded from a local copy. Trying to [search engine] it also
didn't yield helpful information.
Any help appreciated, thanks.
--
Best,
RY
[Please note that this mail might go to spam due to some
misconfiguration in my mail server -- still investigating.]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Q] How do I access a message using message id on mailman?
2023-04-26 13:59 [Q] How do I access a message using message id on mailman? Ruijie Yu via Users list for the GNU Emacs text editor
@ 2023-04-26 14:41 ` andrés ramírez
2023-04-26 14:59 ` Ruijie Yu via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 4+ messages in thread
From: andrés ramírez @ 2023-04-26 14:41 UTC (permalink / raw)
To: Ruijie Yu; +Cc: help-gnu-emacs
Hi. Ruijie.
>>>>> "Ruijie" == Ruijie Yu via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes:
[...]
Ruijie> Any help appreciated, thanks.
This works on my case:
--8<---------------cut here---------------start------------->8---
https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=%2Bmessage-id%3Asdvleierbgp.fsf%40netyu.xyz&submit=Search%21&idxname=help-gnu-emacs
--8<---------------cut here---------------end--------------->8---
I have a function that does that. based on wanderlust (MUA)
--8<---------------cut here---------------start------------->8---
(defvar my-gmane-lists '(("\"Emacs development discussions.\" <emacs-devel.gnu.org>" "emacs-devel" )
("Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>" "help-gnu-emacs" )
))
;;; based on Kévin Le Gouguec snippet
(defun my/wl-summary-yank-search-url (list id)
"Format references from the message-id of a gnu.org list.
Used within wanderlust summary buffer for generating an url based on message-id and list-id.
Copy the generated url to the kill-ring."
(interactive
(list
(let ((default-list
(wl-summary-list-id)))
(read-string (format-prompt "List-ID:" default-list)
nil nil default-list)
(let ((box (assoc default-list my-gmane-lists)))
(if box
(setq default-list (cadr box)))))
(let ((default-id (wl-summary-message-id)))
(read-string (format-prompt "Message-ID:" default-id)
nil nil default-id))))
(let ( (my-url nil))
(setq my-url (concat
;; Escape some chars to url format for search to work.
"https://lists.gnu.org/archive/cgi-bin/namazu.cgi"
"?query=%2Bmessage-id%3A"
(replace-regexp-in-string ">" ""
(replace-regexp-in-string "<" ""
(replace-regexp-in-string "@" "%40"
(replace-regexp-in-string "\\+" "%2B" id))))
"&submit=Search%21"
"&idxname=" list))
(kill-new my-url)
;;;(message "Copied: %s" my-url)
))
--8<---------------cut here---------------end--------------->8---
Best Regards.
ps: It just works on emacs-help cos search on emacs-devel is broken
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Q] How do I access a message using message id on mailman?
2023-04-26 14:41 ` andrés ramírez
@ 2023-04-26 14:59 ` Ruijie Yu via Users list for the GNU Emacs text editor
2023-04-26 15:52 ` andrés ramírez
0 siblings, 1 reply; 4+ messages in thread
From: Ruijie Yu via Users list for the GNU Emacs text editor @ 2023-04-26 14:59 UTC (permalink / raw)
To: andrés ramírez; +Cc: help-gnu-emacs
andrés ramírez <rrandresf@hotmail.com> writes:
> Hi. Ruijie.
>
>>>>>> "Ruijie" == Ruijie Yu via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> writes:
>
>
> [...]
>
>
> Ruijie> Any help appreciated, thanks.
>
> This works on my case:
>
> --8<---------------cut here---------------start------------->8---
> https://lists.gnu.org/archive/cgi-bin/namazu.cgi?query=%2Bmessage-id%3Asdvleierbgp.fsf%40netyu.xyz&submit=Search%21&idxname=help-gnu-emacs
> --8<---------------cut here---------------end--------------->8---
Thanks Andrés, while it is not quite there (I now get a search result of
at most 1 result), this does get me closer to my goal. I'll also take a
look at documentation of namazu and see if any hints are there.
> I have a function that does that. based on wanderlust (MUA)
>
> --8<---------------cut here---------------start------------->8---
> (defvar my-gmane-lists '(("\"Emacs development discussions.\" <emacs-devel.gnu.org>" "emacs-devel" )
> ("Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>" "help-gnu-emacs" )
> ))
>
> ;;; based on Kévin Le Gouguec snippet
> (defun my/wl-summary-yank-search-url (list id)
> "Format references from the message-id of a gnu.org list.
> Used within wanderlust summary buffer for generating an url based on message-id and list-id.
> Copy the generated url to the kill-ring."
> (interactive
> (list
> (let ((default-list
> (wl-summary-list-id)))
> (read-string (format-prompt "List-ID:" default-list)
> nil nil default-list)
> (let ((box (assoc default-list my-gmane-lists)))
> (if box
> (setq default-list (cadr box)))))
> (let ((default-id (wl-summary-message-id)))
> (read-string (format-prompt "Message-ID:" default-id)
> nil nil default-id))))
> (let ( (my-url nil))
> (setq my-url (concat
> ;; Escape some chars to url format for search to work.
> "https://lists.gnu.org/archive/cgi-bin/namazu.cgi"
> "?query=%2Bmessage-id%3A"
> (replace-regexp-in-string ">" ""
> (replace-regexp-in-string "<" ""
You can probably combine these two calls above. :)
> (replace-regexp-in-string "@" "%40"
> (replace-regexp-in-string "\\+" "%2B" id))))
> "&submit=Search%21"
> "&idxname=" list))
> (kill-new my-url)
> ;;;(message "Copied: %s" my-url)
> ))
> --8<---------------cut here---------------end--------------->8---
>
> Best Regards.
> ps: It just works on emacs-help cos search on emacs-devel is broken
Oh, that might also explain it. I haven't actually tried it on
emacs-help; both my attempts (once today and once a few days back) were
on emacs-devel. Any discussions on why searching there is broken and
hasn't been fixed?
--
Best,
RY
[Please note that this mail might go to spam due to some
misconfiguration in my mail server -- still investigating.]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Q] How do I access a message using message id on mailman?
2023-04-26 14:59 ` Ruijie Yu via Users list for the GNU Emacs text editor
@ 2023-04-26 15:52 ` andrés ramírez
0 siblings, 0 replies; 4+ messages in thread
From: andrés ramírez @ 2023-04-26 15:52 UTC (permalink / raw)
To: Ruijie Yu; +Cc: help-gnu-emacs
Hi. Ruijie.
>>>>> "Ruijie" == Ruijie Yu <ruijie@netyu.xyz> writes:
[...]
Ruijie> Thanks Andrés, while it is not quite there (I now get a search result of at most 1
Ruijie> result), this does get me closer to my goal. I'll also take a look at documentation of
Ruijie> namazu and see if any hints are there.
Cool.
[...]
Ruijie> You can probably combine these two calls above. :)
Sure. Nowadays I am using something based on the Archived-At attribute. see:
--8<---------------cut here---------------start------------->8---
https://lists.gnu.org/archive/html/help-gnu-emacs/2023-04/msg00215.html
--8<---------------cut here---------------end--------------->8---
[...]
Ruijie> Oh, that might also explain it. I haven't actually tried it on emacs-help; both my
Ruijie> attempts (once today and once a few days back) were on emacs-devel. Any discussions on
Ruijie> why searching there is broken and hasn't been fixed?
From memory. Once Eli address me to the savannah-hackers (the ones that are
in charge of the servers). So At that time I contacted by email with
'Ian Kelling' I am going to quote what he said on that email at that time:
"Namazu has an odd bug from time to time."
Then Ian did something and It started to work for a few days. But after
it. It has kept broken until now.
Best Regards
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-26 15:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-26 13:59 [Q] How do I access a message using message id on mailman? Ruijie Yu via Users list for the GNU Emacs text editor
2023-04-26 14:41 ` andrés ramírez
2023-04-26 14:59 ` Ruijie Yu via Users list for the GNU Emacs text editor
2023-04-26 15:52 ` andrés ramírez
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 read-only IMAP folder(s) and NNTP newsgroup(s).