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

convert eml to html error #1

Open
lizhiwei888 opened this issue Aug 7, 2019 · 3 comments
Open

convert eml to html error #1

lizhiwei888 opened this issue Aug 7, 2019 · 3 comments

Comments

@lizhiwei888
Copy link

eml_to_html/node_modules/mailparser/lib/mailparser.js:1407
defaultExt = mime.extension(contentType);
^

TypeError: mime.extension is not a function
at MailParser._generateFileName (/Users/moka/nodejs/eml_to_html/node_modules/mailparser/lib/mailparser.js:1407:27)
at MailParser._processStateHeader (/Users/moka/nodejs/eml_to_html/node_modules/mailparser/lib/mailparser.js:309:61)
at MailParser._process (/Users/moka/nodejs/eml_to_html/node_modules/mailparser/lib/mailparser.js:227:22)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)

@lizhiwei888
Copy link
Author

I changed mailparser version from 0.4.6 to 0.6.2 is ok

@amitevski
Copy link
Owner

Awesome! Do you want to create a pull request?

@call0fcode
Copy link

It also worked for me! For those having this problem, simply run npm i [email protected] on the terminal (from project's root directory) and mailparser will be updated to version 0.6.2.

I'm going to make a pull request so that the mailparser dependency is always downloaded in the correct version, 0.6.2.

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