fix email login error when using pop3 method (#272)

Thanks for spotting this (and fixing it !)
This commit is contained in:
wbchn 2017-02-05 01:06:19 +08:00 committed by Dave Conway-Jones
parent c064b88540
commit fa781d6e1a
1 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ module.exports = function(RED) {
pop3Client.on("connect", function() {
//node.log("We are now connected");
pop3Client.login("kolban@test.com", "password");
pop3Client.login(node.userid, node.password);
});
pop3Client.on("login", function(status, rawData) {
@ -253,7 +253,7 @@ module.exports = function(RED) {
});
pop3Client.on("retr", function(status, msgNumber, data, rawData) {
node.log(util.format("retr: status=%s, msgNumber=%d, data=%j", status, msgNumber, data));
// node.log(util.format("retr: status=%s, msgNumber=%d, data=%j", status, msgNumber, data));
if (status) {
// We have now received a new email message. Create an instance of a mail parser