From 739c15a8f9b82eebd094699b3837bc3d944bb744 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Sat, 13 Dec 2003 23:25:42 +0000 Subject: 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. --- Mailman/Handlers/CookHeaders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Mailman/Handlers') 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 -- cgit v1.2.3