node-poplib
node-poplib copied to clipboard
auth event has not been called
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(); } });
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.