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

Header Only Parsing - HeaderList.Load #142

Closed
nitinag opened this issue May 22, 2015 · 1 comment
Closed

Header Only Parsing - HeaderList.Load #142

nitinag opened this issue May 22, 2015 · 1 comment
Labels
enhancement New feature or request

Comments

@nitinag
Copy link

nitinag commented May 22, 2015

We're using HeaderList.Load to pass in a string (via memory stream bytes) of only headers (not the full message).

Failed input cases:
"Header-1: Test";
"Header-2: Test\r\n";
"Header-1: Test\r\nHeader-2: Test\r\n";
"Header-1: Test\r\nHeader-2: Test\r\n";

Success input cases:
"Header-1: Test\r\nHeader-2: Test\r\n";
"Header-1: Test\r\n\r\n";

Including two CRLFs after input to emulate a full message is what we do right now and it always works, but thought I'd point this test case out and see if it made sense to support header only input with any CRLF sequence, including none at the end.

Side note: Exposing Header.RawField and Header.RawValue was very useful for us.

Thanks for making MimeKit. Looking forward to taking advantage of increased performance and modern/complete interface it offers as we begin to use it more.

@jstedfast jstedfast added the enhancement New feature or request label May 25, 2015
@jstedfast
Copy link
Owner

This should work as expected now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants