From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by sourceware.org (Postfix) with ESMTPS id 9586C385B833; Fri, 3 Apr 2020 15:43:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9586C385B833 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1F452AA7C; Fri, 3 Apr 2020 15:43:23 +0000 (UTC) Subject: mailman customization From: =?UTF-8?Q?Martin_Li=c5=a1ka?= To: Jakub Jelinek , Tobias Burnus Cc: overseers@gcc.gnu.org, gcc mailing list , gfortran , "Frank Ch. Eigler" References: <3f4869fd-d852-a8a6-117f-e767a417ff95@codesourcery.com> <8d833f8d-243f-e8b8-69ed-124ef33b7746@codesourcery.com> <20200309102520.GQ2156@tucnak> <69bd8396-1e11-6b87-18f2-658fd171ebc2@suse.cz> Message-ID: <2b833ee3-ffdf-c002-a476-458465f0c6bd@suse.cz> Date: Fri, 3 Apr 2020 17:43:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <69bd8396-1e11-6b87-18f2-658fd171ebc2@suse.cz> Content-Type: multipart/mixed; boundary="------------7F7DA74B840BA24572DEBDA7" Content-Language: en-US X-Spam-Status: No, score=-30.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: overseers@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Overseers mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Apr 2020 15:43:27 -0000 This is a multi-part message in MIME format. --------------7F7DA74B840BA24572DEBDA7 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------7F7DA74B840BA24572DEBDA7 Content-Type: text/x-patch; charset=UTF-8; name="mailman-improvement.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mailman-improvement.patch" 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 @@ +%(datestr)s +
  • %(subject)s   %(author)s --------------7F7DA74B840BA24572DEBDA7--