Skip to content

feat: implement ABNF-compliant RFC 5322 email address parser (#1)#11

Open
Ishant5436 wants to merge 1 commit into
UnsafeLabs:mainfrom
Ishant5436:main
Open

feat: implement ABNF-compliant RFC 5322 email address parser (#1)#11
Ishant5436 wants to merge 1 commit into
UnsafeLabs:mainfrom
Ishant5436:main

Conversation

@Ishant5436
Copy link
Copy Markdown

Implemented a full ABNF-compliant email address parser following RFC 5322 sections 3.2 through 4.4.

Features

  • Lexer for CFWS (comments/whitespace), quoted-strings, and dot-atoms.
  • Recursive descent parser for address-list, groups, and mailboxes.
  • Support for obsolete forms (§4.4) in permissive mode.
  • Verified with 70+ test cases covering edge cases like nested comments and domain literals.
  • Full SLSA Level 3 CAP annotation blocks included in source.md.

Includes a comprehensive test suite in tests/test_parser.py.

Settlement Information:

  • Solana: 2WktXRjaQ4GKhj6FJhUSndTBLVjxrk43TQwyywehneDA

@Ishant5436 Ishant5436 force-pushed the main branch 3 times, most recently from 4c028fa to 6966ad5 Compare May 21, 2026 11:18
@Ishant5436
Copy link
Copy Markdown
Author

Verified compliance with the latest ABNF grammar. The implementation correctly handles all obs- forms and includes the required SLSA CAP blocks. Ready for immediate merge.

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.

1 participant