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

Parse of "received" headers; keep all entries #89

Merged
merged 2 commits into from
Mar 8, 2019

Conversation

Kovus
Copy link
Contributor

@Kovus Kovus commented Mar 8, 2019

I had interest in maintaining a complete record of them in an experiment I'm working on, and thus needed some way to store them. RFC2822 mentions that the trace fields will contain "one or more Received: fields."

This is slightly related to #79. In order to find the "for" value in the trace, you need all of the received headers.

RFC2822 mentions that the trace fields will container "one or more Received: fields."
@bcardarella
Copy link
Member

Thanks for the PR. Can you add a test case for this so we can track future regressions?

@Kovus
Copy link
Contributor Author

Kovus commented Mar 8, 2019

I could, but now that I'm looking at the tests, there is one with a "received" check (which is failing with this change).
Should a message with only a single received header still result in a list of received headers? I would say "yes."

@bcardarella
Copy link
Member

Yes, I believe always being a list would be preferable

@bcardarella
Copy link
Member

🎉

@bcardarella bcardarella merged commit 03b81ff into DockYard:master Mar 8, 2019
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