This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author berker.peksag
Recipients Pedro Lacerda, barry, berker.peksag, frispete, r.david.murray
Date 2016-06-16.11:08:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1466075339.42.0.618198578163.issue27258@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for helping to triage this, Pedro. I think there is a typo in your example: ``email.message_from_binary_file(fp)`` needs to be passed to ``bs.flatten()``.

With the following script I'm also unable to reproduce the issue in Python 3.4+:

    import email
    import email.generator
    import sys

    with open('flatten-exception.mail', 'rb') as f:
        msg = email.message_from_binary_file(f)
        gen = email.generator.BytesGenerator(sys.stdout.buffer)
        gen.flatten(msg)

Hans-Peter, could you share a reproducer with us? Thanks!
History
Date User Action Args
2016-06-16 11:08:59berker.peksagsetrecipients: + berker.peksag, barry, frispete, r.david.murray, Pedro Lacerda
2016-06-16 11:08:59berker.peksagsetmessageid: <1466075339.42.0.618198578163.issue27258@psf.upfronthosting.co.za>
2016-06-16 11:08:59berker.peksaglinkissue27258 messages
2016-06-16 11:08:59berker.peksagcreate