[Mailman-Developers] Re: [Mailman-checkins] mailman/Mailman/Handlers CookHeaders.py, 2.33.2.3, 2.33.2.4

Tokio Kikuchi tkikuchi at is.kochi-u.ac.jp
Sun Dec 14 19:08:35 EST 2003


Hi Barry,

I think this one is not necessary if the encoding is non-ascii.
Any special characters should be properly escaped.

bwarsaw at users.sourceforge.net wrote:

> 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
> Mailman-checkins at python.org
> Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/tkikuchi%40is.kochi-u.ac.jp
> 
> 

-- 
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/




More information about the Mailman-Developers mailing list