Message131407
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. |
|
Date |
User |
Action |
Args |
2011-03-19 12:13:16 | michael.henry | set | recipients:
+ michael.henry, r.david.murray |
2011-03-19 12:13:16 | michael.henry | set | messageid: <1300536796.56.0.211033588078.issue11606@psf.upfronthosting.co.za> |
2011-03-19 12:13:16 | michael.henry | link | issue11606 messages |
2011-03-19 12:13:15 | michael.henry | create | |
|