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.

classification
Title: email set_content does not always use the correct line length for the base64 CTE
Type: behavior Stage: resolved
Components: email Versions: Python 3.6, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: r.david.murray Nosy List: barry, python-dev, r.david.murray
Priority: normal Keywords:

Created on 2016-09-09 18:25 by r.david.murray, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg275373 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-09-09 18:25
The per-line character count is calculated incorrectly, such that some specified line lengths result in padding being added to each line, which is incorrect and breaks subsequent decoding.
msg275390 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2016-09-09 19:00
New changeset 99db6a25444b by R David Murray in branch '3.5':
#28047: Fix calculation of base64 line length.
https://hg.python.org/cpython/rev/99db6a25444b
msg275392 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2016-09-09 19:01
This is buggy in the old email code as well, but it doesn't affect anything there because only the default line length is ever used.
History
Date User Action Args
2022-04-11 14:58:36adminsetgithub: 72234
2016-09-09 19:01:29r.david.murraysetstatus: open -> closed
resolution: fixed
messages: + msg275392

stage: needs patch -> resolved
2016-09-09 19:00:41python-devsetnosy: + python-dev
messages: + msg275390
2016-09-09 18:25:44r.david.murraysetversions: + Python 3.5, Python 3.6
nosy: + barry

components: + email
type: behavior
stage: needs patch
2016-09-09 18:25:20r.david.murraysetassignee: r.david.murray
2016-09-09 18:25:05r.david.murraycreate