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

Parsing fails if there is no gap between headers and body #51

Open
pmweeks98 opened this issue May 3, 2023 · 0 comments
Open

Parsing fails if there is no gap between headers and body #51

pmweeks98 opened this issue May 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@pmweeks98
Copy link
Collaborator

If there is no gap between the headers and the body then the parsing will not work

Have seen this with a multipart email where the boundary is directly under the headers - looks like a similar scenario was encountered before as I see this in the codebase
//Updated on 2019-10-12: A line before the boundary marker is not required to be an empty line //if (lines[i - 1] == "" && line.indexOf("--" + findBoundary) == 0 && !/\-\-(\r?\n)?$/g.test(line)) {

@MQpeng MQpeng added the bug Something isn't working label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants