[Email-SIG] Problem Report for email.Utils.decode_rfc2231
Barry Warsaw
barry at python.org
Tue Jul 18 01:13:16 CEST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
(Python 2.3).
- -Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)
iQCVAwUBRLwZkXEjvBPtnXfVAQKMAAP+KPLDVINLz5Av+8tIjbjhcosfio7bsK1F
EGcqgFO1yvIQOhq7nEkCD8s4Eaks1vcvuE6/VedmDM+Knx7j4e0G+Ycf22kxRVgf
+Ll2mXn/FuZpCPINBV2LHXVWgrKcI849CcEcIgaSszgs0DPqMjmv5eiDpvWBGGVv
dNUgfjZ0LBY=
=w525
-----END PGP SIGNATURE-----
More information about the Email-SIG
mailing list