-
-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Error parsing email headers: AttributeError: 'ValueTerminal' object has no attribute 'fold' #118643
Comments
From RFC 822, section 3.11:
I think it means that we should also set |
But this does not help. It just returns the bug reported in #100884. |
serhiy-storchaka
added
3.12
bugs and security fixes
3.13
bugs and security fixes
3.14
new features, bugs and security fixes
labels
May 10, 2024
I don't understand this comment, I just tested the code mentioned in that issue setting ListSeparator.syntactic_break to |
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
May 16, 2024
Fix regression introduced in pythongh-100884: AttributeError when re-fold a long address list. Also fix more cases of incorrect encoding of the address separator in the address list missed in pythongh-100884.
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
May 16, 2024
Fix regression introduced in pythongh-100884: AttributeError when re-fold a long address list. Also fix more cases of incorrect encoding of the address separator in the address list missed in pythongh-100884.
serhiy-storchaka
added a commit
that referenced
this issue
May 22, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 22, 2024
) Fix regression introduced in pythongh-100884: AttributeError when re-fold a long address list. Also fix more cases of incorrect encoding of the address separator in the address list missed in pythongh-100884. (cherry picked from commit 858b9e8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 22, 2024
) Fix regression introduced in pythongh-100884: AttributeError when re-fold a long address list. Also fix more cases of incorrect encoding of the address separator in the address list missed in pythongh-100884. (cherry picked from commit 858b9e8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This was referenced May 22, 2024
serhiy-storchaka
added a commit
to serhiy-storchaka/cpython
that referenced
this issue
May 22, 2024
…nGH-119099) Fix regression introduced in pythongh-100884: AttributeError when re-fold a long address list. Also fix more cases of incorrect encoding of the address separator in the address list missed in pythongh-100884. (cherry picked from commit 858b9e8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
) Fix regression introduced in pythongh-100884: AttributeError when re-fold a long address list. Also fix more cases of incorrect encoding of the address separator in the address list missed in pythongh-100884.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Bug description:
The following code breaks with an attribute error:
The problem was introduced on #100885, setting
ListSeparator.as_ew_allowed = False
toTrue
fixes the problem. Changing any character in the header in the example above also fixes the problem (which makes it harder to understand exactly why it's broken).CPython versions tested on:
3.12
Operating systems tested on:
macOS
Linked PRs
The text was updated successfully, but these errors were encountered: