node-poplib icon indicating copy to clipboard operation
node-poplib copied to clipboard

auth event has not been called

Open igordeoliveirasa opened this issue 10 years ago • 1 comments

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

LOGIN METHOD CONSOLE RESULT:

CONNECT success Client: 'USER [email protected]\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 avatar Oct 20 '15 20:10 igordeoliveirasa

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.

igordeoliveirasa avatar Oct 20 '15 20:10 igordeoliveirasa