public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: Jakub Jelinek <jakub@redhat.com>,
	Tobias Burnus <tobias@codesourcery.com>
Cc: overseers@gcc.gnu.org, gcc mailing list <gcc@gcc.gnu.org>,
	gfortran <fortran@gcc.gnu.org>,
	"Frank Ch. Eigler" <fche@elastic.org>
Subject: mailman customization
Date: Fri, 3 Apr 2020 17:43:23 +0200	[thread overview]
Message-ID: <2b833ee3-ffdf-c002-a476-458465f0c6bd@suse.cz> (raw)
In-Reply-To: <69bd8396-1e11-6b87-18f2-658fd171ebc2@suse.cz>

[-- Attachment #1: Type: text/plain, Size: 515 bytes --]

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

[-- Attachment #2: mailman-improvement.patch --]
[-- Type: text/x-patch, Size: 1191 bytes --]

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">&nbsp;</A>
 <I>%(author)s

  parent reply	other threads:[~2020-04-03 15:43 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <C92C61E7-EF8A-4AD7-904D-FA6E0AD6649C@tkoenig.net>
2020-03-09  8:40 ` gcc ML archive: text/x-patch attachments no longer shown inline (was:Re: Mailing list stripping off attachments) Tobias Burnus
2020-03-09  8:48   ` Thomas König
2020-03-09  9:46     ` text/x-* attachments stripped (was: Re: gcc ML archive: text/x-patch attachments no longer shown inline (was:Re: Mailing list stripping off attachments)) Tobias Burnus
2020-03-09  9:51       ` List-Id header being stripped (was:Re: Mailing list stripping off attachments) Richard Bradfield
2020-03-09 10:27         ` List-Id header being stripped Andreas Schwab
2020-03-09 10:44           ` Richard Bradfield
2020-03-09 10:30         ` Florian Weimer
2020-03-09 10:49           ` Richard Earnshaw
2020-03-09 11:32             ` Florian Weimer
2020-03-09 12:28               ` Gerald Pfeifer
2020-03-09 10:25       ` text/x-* attachments stripped (was: Re: gcc ML archive: text/x-patch attachments no longer shown inline (was:Re: Mailing list stripping off attachments)) Jakub Jelinek
2020-03-09 10:47         ` Jonathan Wakely
2020-03-09 11:21           ` text/x-* attachments stripped Andreas Schwab
2020-03-09 13:57         ` text/x-* attachments stripped (was: Re: gcc ML archive: text/x-patch attachments no longer shown inline (was:Re: Mailing list stripping off attachments)) Thomas König
2020-03-09 15:45           ` text/x-* attachments strippe Gerald Pfeifer
2020-03-09 16:03             ` Frank Ch. Eigler
2020-03-09 16:53           ` text/x-* attachments stripped (was: Re: gcc ML archive: text/x-patch attachments no longer shown inline Nathan Sidwell
2020-03-09 17:06             ` Andreas Schwab
2020-03-09 17:07             ` Jonathan Wakely
2020-03-09 17:20               ` text/x-* attachments stripped Nathan Sidwell
2020-03-09 19:49         ` text/x-* attachments stripped (was: Re: gcc ML archive: text/x-patch attachments no longer shown inline (was:Re: Mailing list stripping off attachments)) Thomas König
2020-03-09 22:11           ` Jonathan Wakely
2020-03-09 21:07         ` Joseph Myers
2020-03-09 23:16         ` Jonathan Wakely
2020-04-03 14:29         ` Martin Liška
2020-04-03 15:19           ` Christopher Faylor
2020-04-03 15:43           ` Martin Liška [this message]
2020-04-03 15:54             ` mailman customization Frank Ch. Eigler
2020-04-03 15:58               ` Martin Liška
2020-04-03 16:30                 ` Christopher Faylor
2020-04-03 16:42                   ` Christopher Faylor
2020-04-03 20:52                     ` mailman customization not quite right yet Christopher Faylor
2020-04-04  9:20                       ` Martin Liška
2020-05-05  9:57                         ` Martin Liška
2020-05-05 14:23                           ` Christopher Faylor
2020-04-03 16:36               ` mailman customization Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2b833ee3-ffdf-c002-a476-458465f0c6bd@suse.cz \
    --to=mliska@suse.cz \
    --cc=fche@elastic.org \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=overseers@gcc.gnu.org \
    --cc=tobias@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).