Skip to content

envelope: Rely on stdlib for decoding to UTF-8 #234

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

Merged
merged 5 commits into from
Feb 19, 2022
Merged

Conversation

jhillyerd
Copy link
Owner

@jhillyerd jhillyerd commented Feb 19, 2022

Update AddressList to rely on stdlib for decoding to UTF-8. This is an inverted approach to that of #219

I also extracted & exposed our parser and added unit tests so we don't have to add testdata file based tests for all address list scenarios.

While Go's address parsing has improved significantly since the initial release of enmime, it's possible we will still run into some regressions. If that happens we can add a fall-back to using our own rfc2047 decoder.

Closes #218

@jhillyerd jhillyerd merged commit 845190e into master Feb 19, 2022
@jhillyerd jhillyerd deleted the stdlib-addrlist branch February 19, 2022 20:45
This was referenced Feb 19, 2022
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.

Failed to parse address with colon
2 participants