agsh / yapople

Yet another POP3 email library
MIT License
24 stars 12 forks source link

client.retreiveAll is returning a Buffer #10

Open shanmugapriyatr opened 4 years ago

shanmugapriyatr commented 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

agsh commented 4 years ago

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