Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Don't split on empty folded headers #4

Merged
merged 3 commits into from Jul 2, 2014

Conversation

nisanthchunduru
Copy link
Contributor

@nisanthchunduru nisanthchunduru commented Jul 2, 2014

@nisanthchunduru nisanthchunduru self-assigned this Jul 2, 2014
- Minimizes behaviour differences with 2-4 stable
- Not allowing spaces on gap line breaks
  rspec ./spec/mail/message_spec.rb:274 # Mail::Message accepting a plain text string email should give allow for whitespace on the gap line between header and body

Conflicts:
	spec/monkeys/message_spec.rb
RFC conformant mails have an empty line separating headers and body

http://tools.ietf.org/html/rfc2822#section-3.5
message         =       (fields / obs-fields)
                        [CRLF body]
# http://tools.ietf.org/html/rfc2822#section-3.5
# Added to minimize behaviour differences with 2-4 stable, and to not break
# rspec ./spec/mail/message_spec.rb:274 # Mail::Message accepting a plain text string email should give allow for whitespace on the gap line between header and body
it 'allows 2 or more whitespaces on the gap line between header and body' do
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@avinasha Allowing 2 or more whitespaces on the gap line, closer to 2-4 stable which allows 1 or more whitespaces on the gap line. Or should we strictly stick to RFC, and only split on \r\n\r\n?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Importing a corrupt mail is better than not importing, being non strict

nisanthchunduru added a commit that referenced this pull request Jul 2, 2014
Don't split on empty folded headers
@nisanthchunduru nisanthchunduru merged commit 1d15a5e into 2-4-monkeyed Jul 2, 2014
@nisanthchunduru nisanthchunduru deleted the empty_folded_header branch April 5, 2018 13:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant