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

do not replace \n to \r\n when \r\n\r\n exists #14

Merged
merged 1 commit into from
May 10, 2019

Conversation

fangdingjun
Copy link
Contributor

when the \r\n\r\n exists on email,
the getHeadersBody function will replace it to \r\r\n\r\r\n,
this corrupt the mail,
getHeadersBody will return ErrBadMailFormat error,
but this error not handled by canonicalize,
so getHeadersList panic

when the \r\n\r\n exists on email,
the getHeadersBody function will replace it to \r\r\n\r\r\n,
this corrupt the mail,
getHeadersBody will return ErrBadMailFormat error,
but this error not handled by canonicalize,
so getHeadersList panic
@toorop toorop merged commit 31e3106 into toorop:master May 10, 2019
@toorop
Copy link
Owner

toorop commented May 10, 2019

thanks ;)

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