Skip to content
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

Replace RFC-822 address-list parser with RFC-5322 #278

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

seriyps
Copy link
Collaborator

@seriyps seriyps commented Sep 13, 2021

A more modern and robust parser for address specifiers like this (may appear in To / From / CC etc):
https://datatracker.ietf.org/doc/html/rfc5322#section-3.4

  • login@domain
  • Name <login@domain>
  • Name Surname <login@domain>
  • Name <login1@domain1>, Name2 <login2@domain2>
  • group name:login@domain,Name <login2@domain2>;

Also different versions of escaping of name / login / domain.
It's much more unicode-friendly also.

@seriyps seriyps requested a review from mworrell September 13, 2021 03:19
@seriyps seriyps force-pushed the rfc5322-address-list branch from 4274355 to b47ab2c Compare September 13, 2021 03:32
@mworrell
Copy link
Collaborator

Great work!

@mworrell mworrell merged commit abc8817 into gen-smtp:master Sep 21, 2021
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