summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/CookHeaders.py
diff options
context:
space:
mode:
authorbwarsaw2002-04-11 04:17:37 +0000
committerbwarsaw2002-04-11 04:17:37 +0000
commita664c967bc47658b0c98187eabb35a63383601dc (patch)
treeb899fdebf127768cf8a8155b0fc3506c5d2f5f0a /Mailman/Handlers/CookHeaders.py
parenta44ee092121cfbc9497d4eccdb33ac3c3ef8d62e (diff)
downloadmailman-a664c967bc47658b0c98187eabb35a63383601dc.tar.gz
mailman-a664c967bc47658b0c98187eabb35a63383601dc.tar.zst
mailman-a664c967bc47658b0c98187eabb35a63383601dc.zip
Diffstat (limited to 'Mailman/Handlers/CookHeaders.py')
-rw-r--r--Mailman/Handlers/CookHeaders.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index 1367152e5..e423b3d78 100644
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -141,7 +141,10 @@ def process(mlist, msg, msgdata):
})
# Add this header if we're archiving
if mlist.archive:
- headers['List-Archive'] = mlist.GetBaseArchiveURL()
+ archiveurl = mlist.GetBaseArchiveURL()
+ if archiveurl.endswith('/'):
+ archiveurl = archiveurl[:-1]
+ headers['List-Archive'] = '<%s>' % archiveurl
# First we delete any pre-existing headers because the RFC permits only
# one copy of each, and we want to be sure it's ours.
for h, v in headers.items():