[Email-SIG] Problem Report for email.Utils.decode_rfc2231
barry at python.org
Tue Jul 18 01:13:16 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
On Jul 7, 2006, at 4:52 AM, Georg Graf wrote:
> Assumption 1: The string passed either has zero single-quotes or
> more than 1.
> Assumption 2: If the string has two or more single-quotes the
> meaning of the parts is different. I dont know rfc2231, so what
> do I write. But still it seems funny to me.
> Fact is in this mail (generated by a recent thunderbird version)
> there is only one single quote in the filename and the function
> fails, see below.
> My fix would be to write "if len(parts) != 3", but I'm interested
> what you say (it fixes this specific problem, I'd say).
FWIW, this is now fixed in email 4.0.1 (Python 2.5 trunk), and I will
be back porting the fix to email 3.0 (Python 2.4) and email 2.5
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
-----END PGP SIGNATURE-----
More information about the Email-SIG