[Mailman-Users] List-Archive URL for private archives broken - the patch

Daniel Novotny dnovotny at redhat.com
Mon Mar 30 15:52:25 CEST 2009


hello,

somehow, the patch in the attachment did not appear in the mailing list, sending
it here as plaintext:

diff -up mailman-2.1.12/Mailman/Handlers/CookHeaders.py.privurl mailman-2.1.12/Mailman/Handlers/CookHeaders.py
--- mailman-2.1.12/Mailman/Handlers/CookHeaders.py.privurl	2009-03-30 15:03:58.000000000 +0200
+++ mailman-2.1.12/Mailman/Handlers/CookHeaders.py	2009-03-30 15:06:45.000000000 +0200
@@ -215,7 +215,7 @@ def process(mlist, msg, msgdata):
         # Add this header if we're archiving
         if mlist.archive:
             archiveurl = mlist.GetBaseArchiveURL()
-            if archiveurl.endswith('/'):
+            if archiveurl.endswith('/') and archiveurl.find("private") == -1:
                 archiveurl = archiveurl[:-1]
             headers['List-Archive'] = '<%s>' % archiveurl
     # First we delete any pre-existing headers because the RFC permits only


More information about the Mailman-Users mailing list