From 5d45d384e946f806550e7f75e275fba6a51f7fa4 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 5 Jan 2020 13:32:46 +0100 Subject: [PATCH] generate_contributions.py: allow mail-archive message IDs as MARC stopped tracking us --- lib/generate_contributions.py | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py index 94e963f2da..f6d8bd6575 100755 --- a/lib/generate_contributions.py +++ b/lib/generate_contributions.py @@ -234,7 +234,11 @@ $output=$output. " if (isset($msg_ref) && $msg_ref != "") { $msg_ref = htmlspecialchars("$msg_ref"); - $output=$output. "[[https://marc.info/?l=lyx-devel&" . ${msg_ref} . "|" . ${msg_title} . "]]"; + if (substr($msg_ref, 0, 2) == "m=") { + $output=$output. "[[https://marc.info/?l=lyx-devel&" . ${msg_ref} . "|" . ${msg_title} . "]]"; + } else { + $output=$output. "[[https://www.mail-archive.com/lyx-devel@lists.lyx.org/" . ${msg_ref} . ".html |" . ${msg_title} . "]]"; + } } else { $output=$output. "${msg_title}"; } @@ -328,6 +332,20 @@ def main(argv, contributors): # Store the raw data. +# +# NOTE: syntax is +# contributor(u"Name", +# "Email [address () domain ! tld]", +# "GPL", +# "Message title", +# "Message ID", +# "Date of Message", +# u"Type of contribution"), +# +# Message ID can be either MARC [e.g., "m=1234567891011"] +# or mail-archive.com [e.g., "msg75510"] +# (note that MARC was used exclusively until 2019-10, when MARC stopped +# archieving lyx-devel) contributors = [ contributor(u"Ronen Abravanel", -- 2.39.5