Hello.
I believe we can quite easily customize mailman 2.1 to match our needs.
The biggest challenge I see is a proper testing as I don't see it easy
to set up a local mailman instance. I've got a patch that changes:
- by date sorting will be done in reverse order
- default link of e.g. https://gcc.gnu.org/pipermail/gcc-patches/2020-April/
will
point to sorting by date
- email date is added to the listing
Further changes would be possible but I'll need a cooperation from oversees
people.
Thanks,
Martin
diff --git a/Mailman/Archiver/HyperArch.py b/Mailman/Archiver/HyperArch.py
index 4469193..2e186ff 100644
--- a/Mailman/Archiver/HyperArch.py
+++ b/Mailman/Archiver/HyperArch.py
@@ -637,7 +637,7 @@ class HyperArchive(pipermail.T):
FILEMODE = 0660
VERBOSE = 0
- DEFAULTINDEX = 'thread'
+ DEFAULTINDEX = 'date'
ARCHIVE_PERIOD = 'month'
THREADLAZY = 0
diff --git a/Mailman/Archiver/HyperDatabase.py b/Mailman/Archiver/HyperDatabase.py
index 2475d47..3566425 100644
--- a/Mailman/Archiver/HyperDatabase.py
+++ b/Mailman/Archiver/HyperDatabase.py
@@ -71,7 +71,7 @@ class DumbBTree:
def __sort(self, dirty=None):
if self.__dirty == 1 or dirty:
self.sorted = self.dict.keys()
- self.sorted.sort()
+ self.sorted.sort(reverse = self.path.endswith('date'))
self.__dirty = 0
def lock(self):
diff --git a/templates/en/archidxentry.html b/templates/en/archidxentry.html
index f9bb57a..365e836 100644
--- a/templates/en/archidxentry.html
+++ b/templates/en/archidxentry.html
@@ -1,3 +1,5 @@
+<I>%(datestr)s
+</I>
<LI><A HREF="%(filename)s">%(subject)s
</A><A NAME="%(sequence)i"> </A>
<I>%(author)s