diff options
author | bwarsaw <> | 2003-12-13 23:25:42 +0000 |
---|---|---|
committer | bwarsaw <> | 2003-12-13 23:25:42 +0000 |
commit | 739c15a8f9b82eebd094699b3837bc3d944bb744 (patch) | |
tree | f9b94b8cc90ad60c08e64722579237bd9093a2c6 /Mailman | |
parent | d913ad840eb9cfbb17882bb3d3a2f37e5ed9d2a6 (diff) | |
download | mailman2-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 'Mailman')
-rw-r--r-- | Mailman/Handlers/CookHeaders.py | 2 |
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 |