Open mchopra1004 opened 7 years ago
@mchopra1004
Add an error handler to log any errors during setup
mailListener.on("error", function(err){ console.log(err); });
If "imapConnected" is logged on a successful connection my next issue was the searchFilter property. I had to remove the "FLAGGED" filter to see requests
Same here. Removing "FLAGGED" value from searchFilter
made my code finally see Gmail emails. Thank you @rphansen91!
I also had to remove "FLAGGED" from the filter to be able to see emails from an iRedMail server.
After running the above code getting Error
mime.extension is not a function
I get the same as this..
If "FLAGGED" is set, then I see debug log that messages are arrived but the on("mail".. handler does not fire.
If I remove FLAGGED, then the parsing is failing with mime.extension is not a function.
Hi, I used the below snippet. Although it does not return any error but it does not produce any output. I think the code from line mailListener.on does not execute (Please help.!!! var MailListener = require("mail-listener2");