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

TypeError: mime.extension is not a function #75

Open
Pranav-Dakshina opened this issue Mar 6, 2018 · 5 comments
Open

TypeError: mime.extension is not a function #75

Pranav-Dakshina opened this issue Mar 6, 2018 · 5 comments

Comments

@Pranav-Dakshina
Copy link

I get this error when I run Mail-listener2, I guess this is because mailparser in the dependencies is ~0.4.6, The latest mailparser solves this issue.

@andreihaiducu
Copy link

I could easily fix this with mime.getExtension(contentType)

@Pranav-Dakshina
Copy link
Author

@andreihaiducu Yeah that works too. I think they have added this change in mailparser 0.6.2.

@andreihaiducu
Copy link

can you tell me which version of mail-listener i can get ? I'm trying to implement a mail listener but can't find a good version.
Tried mail-listener3 and mail-listener2 both give same error : mime.extension not a function .
Thanks

@Pranav-Dakshina
Copy link
Author

@andreihaiducu try mail-listener4. I have added this change in that.

@VivekPowar
Copy link

@Pranav-Dakshina how to download attachment file in attachment.path is undefined
mailListener.on("attachment", function(attachment){
console.log(attachment.path);
});

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