[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Tue, Apr 05, 2011 at 08:35:22PM +, R. David Murray wrote: Simple fix, but it took me a while to track down the critical piece of code. I've really tried to break it, but i can't. --

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset b807cf929e26 by R David Murray in branch '3.2': #11605: don't use set/get_payload in feedparser; they do conversions. http://hg.python.org/cpython/rev/b807cf929e26 New changeset 642c0d6799c5 by R David Murray in branch 'default':

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the testing. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11605

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-05 Thread ysj.ray
Changes by ysj.ray ysj@gmail.com: -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11605 ___ ___ Python-bugs-list mailing list

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-05 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: ysj.ray, this rude workaround manages it yet for me (self._msg is a BytesParser() generated Message): if not self._msg.is_multipart(): return topmost = True for part in

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm working on this. It appears to be a bug in the bytes parser, rather than the generator. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11605

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Although there's a (different) bug in the generator, too, I think :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11605 ___

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-05 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here is a patch against 3.2, with test. Simple fix, but it took me a while to track down the critical piece of code. -- keywords: +patch stage: needs patch - patch review Added file:

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-03-19 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: By the way, instead of using my postman you may also reuse the stuff from #11401. To crash that instead of generator_booom.mbox simply change whatever character in the text/plain part to a valid LATIN1 (charset=ISO-8859-1)

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-03-19 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11605 ___ ___

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-03-19 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can reproduce this just using message_from_binary_file and BytesGenerator on your input file, so thanks for attaching the email. I have a test in the test suite that is *supposed* to test this, but clearly there is a case here that is