-----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----- _______________________________________________ Email-SIG mailing list [email protected] Your options: http://mail.python.org/mailman/options/email-sig/archive%40mail-archive.com
