Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.retreiveAll is returning a Buffer #10

Open
shanmugapriyatr opened this issue Aug 6, 2020 · 1 comment
Open

client.retreiveAll is returning a Buffer #10

shanmugapriyatr opened this issue Aug 6, 2020 · 1 comment

Comments

@shanmugapriyatr
Copy link

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
Copy link
Owner

agsh commented Aug 27, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants