yapople icon indicating copy to clipboard operation
yapople copied to clipboard

client.retreiveAll is returning a Buffer

Open shanmugapriyatr opened this issue 5 years ago • 1 comments

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 avatar Aug 06 '20 11:08 shanmugapriyatr

@shanmugapriyatr Hi! Can not reproduce your bug. Added check for message.subject to be string but tests are still passing

agsh avatar Aug 27 '20 17:08 agsh