feat(parser): implement RFC 5322 email address parser with full ABNF coverage - #25
Open
GautamKumarOffical wants to merge 1 commit into
Open
Conversation
…coverage Added a Python parser implementing the complete ABNF grammar from RFC 5322 sections 3.2-3.4, plus obsolete syntax from section 4.4. - AddressParser class with parse(), parse_address_list(), parse_mailbox_list() - RFC5322Address dataclass with display_name, local_part, domain, group support - Strict/permissive mode for obs-* production handling - 73 test cases covering quoted-pair, FWS, CFWS, quoted-string, addr-spec, domain literals (IPv4/IPv6), group addresses, and obsolete forms - Compliance matrix mapping all ABNF productions to tests Closes UnsafeLabs#1 Signed-off-by: Gautam Kumar <gautamkumarofficial@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implemented a complete RFC 5322 email address parser in Python, covering the full ABNF grammar from sections 3.2-3.4 plus obsolete syntax from section 4.4.
Changes
Features
Test Coverage
Closes #1