Open shanmugapriyatr opened 4 years ago
var client = new Client({ hostname: 'pop.mail.ru', port: 995, tls: true, mailparser: true, username: 'username', password: 'password' }); client.connect(function() { client.retrieveAll(function(err, messages) { messages.forEach(function(message) { console.log(message.subject); }); client.quit(); }) })
Here the message inside the foreach is a Buffer and not an object and message.subject is throwing an exception
@shanmugapriyatr Hi! Can not reproduce your bug. Added check for message.subject to be string but tests are still passing
message.subject
string
var client = new Client({ hostname: 'pop.mail.ru', port: 995, tls: true, mailparser: true, username: 'username', password: 'password' }); client.connect(function() { client.retrieveAll(function(err, messages) { messages.forEach(function(message) { console.log(message.subject); }); client.quit(); }) })
Here the message inside the foreach is a Buffer and not an object and message.subject is throwing an exception