Skip to content

Allow for RFC5322 dates without a day #12

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 2 commits into from
Apr 11, 2022

Conversation

adam-fowler
Copy link
Member

Allow RFC5322 dates without a day to decode

Motivation:

Sometimes the RFC5322 date in the email common headers does not include a day

Modifications:

I added a second dateFormatter to RFC5322DateTimeCoding for dates that do not include a day and check against that as well as the standard one that also includes the day

Result:

Emails whose date in their common headers does not include a day decode.

@tomerd
Copy link
Contributor

tomerd commented Apr 11, 2022

thanks @adam-fowler

@tomerd tomerd merged commit 2101c95 into swift-server:main Apr 11, 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.

2 participants