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 michael.henry
Recipients michael.henry, r.david.murray
Date 2011-03-19.12:13:14
SpamBayes Score 7.956319e-05
Marked as misclassified No
Message-id <1300536796.56.0.211033588078.issue11606@psf.upfronthosting.co.za>
In-reply-to
Content
The email module's body_encode() function (found in
quoprimime.py) can generate oversized encoded lines that exceed
the maximum line length specified by the maxlinelen parameter.
The attached test case
'test_encode_trailing_space_at_maxlinelen' demonstrates the
problem.  When encoding the body 'abcd \n1234' with
maxlinelen=5, the erroneous output is 'abcd =\n\n1234', with 6
characters in the first output line.

The attached patch provides unit tests and a fix for
body_encode().  

Note: This patch depends on application of the patch in Issue
#11590.
History
Date User Action Args
2011-03-19 12:13:16michael.henrysetrecipients: + michael.henry, r.david.murray
2011-03-19 12:13:16michael.henrysetmessageid: <1300536796.56.0.211033588078.issue11606@psf.upfronthosting.co.za>
2011-03-19 12:13:16michael.henrylinkissue11606 messages
2011-03-19 12:13:15michael.henrycreate