ditesh / node-poplib

POP3 client library for Node.js
MIT License
128 stars 44 forks source link

auth event has not been called #22

Open igordeoliveirasa opened 9 years ago

igordeoliveirasa commented 9 years ago

I've been connecting successfully, however auth event never get called.

LOGIN METHOD CONSOLE RESULT:

CONNECT success Client: 'USER igor------asa@gmail.com\r\n' Server: '+OK send PASS\r\n' Client: 'PASS ****\r\n' Server: '+OK Welcome.\r\n'

AUTH EVENT LISTENER DECLARATION

client.on("auth", function(status, data) { if (status) { console.log("LOGIN/PASS success"); client.list(10); } else { console.log("LOGIN/PASS failed"); client.quit(); } });

igordeoliveirasa commented 9 years ago

I've found out. It's because the right name of event should be 'login'. Sample needs to be changed. I'll try to update.