[LyX/master] generate_contributions.py: allow mail-archive message IDs
Juergen Spitzmueller
spitz at lyx.org
Sun Jan 5 12:24:27 UTC 2020
commit 31595759acb4f8099267fa5b459d6f014e941d0f
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Sun Jan 5 13:32:46 2020 +0100
generate_contributions.py: allow mail-archive message IDs
as MARC stopped tracking us
---
lib/generate_contributions.py | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/lib/generate_contributions.py b/lib/generate_contributions.py
index 94e963f..f6d8bd6 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",
More information about the lyx-cvs
mailing list