New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
email.policy.SMTP.fold() mangles long headers #74717
Comments
When email.policy.SMTP.fold() attempts to wrap a line in which a chunk that does not contain a space is longer than the maximum line length, two things go wrong:
In the attached test case, email.policy.SMTP.fold() is called on a line of the style: <filename> does not contain any spaces and increases in length with each pass. Everything works correctly when 'filename="<filename>"' fits onto one line. However, once it is longer than the maximum line length, the following happens:
|
I added a pull request that causes Chris's test to pass. I can confirm that the Chris's was not pass for me on master branch. |
Rebased the github PR on latest master to get the windows build passing CI. Is there anything I need to do to keep the PR moving? |
Ping the issue again next week if I don't get to it this weekend. |
I am a week late, but here is a ping. |
Just as well. I had no time last weekend. I should have time this Sunday, though. |
Thanks, Joel! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: