New submission from Mike Glover <mglo...@pobox.com>:
The attached file demonstrates the incorrect folding behavior I'm seeing. Header lines of a certain total length get folded after the colon following the header name, which is not valid RFC. Slightly longer or shorter lines are folded correctly. Interestingly, the test file produces correct output on 3.5.2 $ python --version Python 3.8.5 $ sudo apt install python3 ... python3 is already the newest version (3.8.2-0ubuntu2). (yes, that difference has me scratching my head) And yes, I realize this is not the latest release of the 3.8 branch, but it *is* the latest available through apt on Ubuntu 20.04 LTS, and a search of the issue tracker and the release notes for all of 3.8.* turned up nothing applicable. ---------- components: email files: header_misfolding.py messages: 388687 nosy: barry, mglover, r.david.murray priority: normal severity: normal status: open title: EmailMessage mis-folding headers of a certain length type: behavior versions: Python 3.8 Added file: https://bugs.python.org/file49875/header_misfolding.py _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43493> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com