Skip to content

Conversation

@jdstrand
Copy link
Collaborator

Python 3.12 changed the email.parser parsing as part of python/cpython#124452, but this broke our parser. We were using email.parser as a cheap way to parse RFC5322, but we're already had to do post-processing for our format and would need to add compatibility for the new parsing.

Instead, implement our own RFC5322 parser and tailor it to our needs (which allows better formatting checks).

Python 3.12 changed the email.parser parsing as part of
python/cpython#124452, but this broke our
parser. We were using email.parser as a cheap way to parse RFC5322, but
we're already had to do post-processing for our format and would need to
add compatibility for the new parsing.

Instead, implement our own RFC5322 parser and tailor it to our needs
(which allows better formatting checks).
@jdstrand jdstrand merged commit 5d562f6 into main Jan 28, 2026
8 checks passed
@jdstrand jdstrand deleted the jdstrand/rfc5322 branch January 28, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants