mail-listener2 icon indicating copy to clipboard operation
mail-listener2 copied to clipboard

TypeError: mime.extension is not a function

Open Pranav-Dakshina opened this issue 6 years ago • 5 comments

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.

Pranav-Dakshina avatar Mar 06 '18 02:03 Pranav-Dakshina

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

andreihaiducu avatar Mar 19 '18 17:03 andreihaiducu

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

Pranav-Dakshina avatar Mar 19 '18 17:03 Pranav-Dakshina

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

andreihaiducu avatar Mar 19 '18 17:03 andreihaiducu

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

Pranav-Dakshina avatar Mar 19 '18 17:03 Pranav-Dakshina

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

VivekPowar avatar Mar 22 '19 10:03 VivekPowar