[issue5277] email message.get_params() and related methods sometimes fail.

Shashwat Anand report at bugs.python.org
Mon Apr 12 23:48:45 CEST 2010


Shashwat Anand <anand.shashwat at gmail.com> added the comment:

According to RFC2231 the named disposition (content disposition field) is provided by the MIME mechanism. The encoded parameter like the following:

Content-Disposition: inline;
 filename*0="Re: [Mailman-Users] Messages shunted with \"TypeError: ";
 filename*1="decodingUnicode is not supported\".eml"

is not behaving the way it should be.
The patch by rcoyner seems fine to me as it rectifies the wrong behaviour of _parseparam i.e. the counting issue of nested 'double quotes' and clears the unit tests.

----------
nosy: +l0nwlf

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5277>
_______________________________________


More information about the Python-bugs-list mailing list