New submission from Michael Henry <pyt...@drmikehenry.com>: 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. ---------- components: Library (Lib) files: quoprimime_patch_body_encode.patch keywords: patch messages: 131407 nosy: michael.henry, r.david.murray priority: normal severity: normal status: open title: maxlinelen exceeded by email module's body_encode() function Added file: http://bugs.python.org/file21289/quoprimime_patch_body_encode.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11606> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com