aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Handlers
diff options
context:
space:
mode:
authorbwarsaw <>2003-12-13 23:25:42 +0000
committerbwarsaw <>2003-12-13 23:25:42 +0000
commit739c15a8f9b82eebd094699b3837bc3d944bb744 (patch)
treef9b94b8cc90ad60c08e64722579237bd9093a2c6 /Mailman/Handlers
parentd913ad840eb9cfbb17882bb3d3a2f37e5ed9d2a6 (diff)
downloadmailman2-739c15a8f9b82eebd094699b3837bc3d944bb744.tar.gz
mailman2-739c15a8f9b82eebd094699b3837bc3d944bb744.tar.xz
mailman2-739c15a8f9b82eebd094699b3837bc3d944bb744.zip
process(): Quote the description when adding it to the List-ID header,
in case there are any special characters (in the RFC 2822) in the description.
Diffstat (limited to '')
-rw-r--r--Mailman/Handlers/CookHeaders.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/Handlers/CookHeaders.py b/Mailman/Handlers/CookHeaders.py
index 2ec1f3f7..6e8c0c6c 100644
--- a/Mailman/Handlers/CookHeaders.py
+++ b/Mailman/Handlers/CookHeaders.py
@@ -168,7 +168,7 @@ def process(mlist, msg, msgdata):
listid = '<%s.%s>' % (mlist.internal_name(), mlist.host_name)
if mlist.description:
# Make sure description is properly i18n'd
- listid_h = uheader(mlist, mlist.description, 'List-Id')
+ listid_h = uheader(mlist, u'"' + mlist.description + u'"', 'List-Id')
listid_h.append(listid, 'us-ascii')
else:
# For wrapping