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

First line break of text message gets ignored #217

Closed
maddo7 opened this issue May 2, 2019 · 1 comment
Closed

First line break of text message gets ignored #217

maddo7 opened this issue May 2, 2019 · 1 comment

Comments

@maddo7
Copy link

maddo7 commented May 2, 2019

It seems the first line break for the text output is being ignored:

 const simpleParser = require('mailparser').simpleParser;
 var mail = `Content-Type: text/plain; charset=utf-8; format=flowed

Hello
test
123

`;

 simpleParser(mail, {}, (err, parsed) => {
	console.log(parsed);
 });

will output

text: 'Hellotest\n123\n\n',

The first line break after Hello gets ignored.

@luddd3
Copy link
Contributor

luddd3 commented May 6, 2019

I also ran into this issue. The problem is a bug within the libmime package, which is used by mail-split

@andris9 has merged a pull request with a fix, and I'm sure he will update mail-split and this repository soon.

@andris9 andris9 closed this as completed Oct 28, 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

No branches or pull requests

3 participants