mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
fix email login error when using pop3 method (#272)
Thanks for spotting this (and fixing it !)
This commit is contained in:
parent
c064b88540
commit
fa781d6e1a
@ -239,7 +239,7 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
pop3Client.on("connect", function() {
|
pop3Client.on("connect", function() {
|
||||||
//node.log("We are now connected");
|
//node.log("We are now connected");
|
||||||
pop3Client.login("kolban@test.com", "password");
|
pop3Client.login(node.userid, node.password);
|
||||||
});
|
});
|
||||||
|
|
||||||
pop3Client.on("login", function(status, rawData) {
|
pop3Client.on("login", function(status, rawData) {
|
||||||
@ -253,7 +253,7 @@ module.exports = function(RED) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
pop3Client.on("retr", function(status, msgNumber, data, rawData) {
|
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) {
|
if (status) {
|
||||||
|
|
||||||
// We have now received a new email message. Create an instance of a mail parser
|
// We have now received a new email message. Create an instance of a mail parser
|
||||||
|
Loading…
Reference in New Issue
Block a user