Update of /cvsroot/mailman/mailman/Mailman/Handlers
In directory sc8-pr-cvs1:/tmp/cvs-serv26065
Modified Files:
Tag: Release_2_1-maint
CookHeaders.py
Log Message:
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.
Index: CookHeaders.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/CookHeaders.py,v
retrieving revision 2.33.2.3
retrieving revision 2.33.2.4
diff -u -d -r2.33.2.3 -r2.33.2.4
--- CookHeaders.py 22 Sep 2003 02:37:51 -0000 2.33.2.3
+++ CookHeaders.py 13 Dec 2003 23:25:42 -0000 2.33.2.4
@@ -168,7 +168,7 @@
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
_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org