mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
tidy up email listing - no code changes
This commit is contained in:
parent
3107080b19
commit
1cfb5f403d
@ -1,5 +1,5 @@
|
|||||||
/**
|
/**
|
||||||
* Copyright 2013, 2015 IBM Corp.
|
* Copyright 2013, 2016 IBM Corp.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -206,7 +206,7 @@ module.exports = function(RED) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
node.send(msg); // Propagate the message down the flow
|
node.send(msg); // Propagate the message down the flow
|
||||||
}; // End of processNewMessage
|
} // End of processNewMessage
|
||||||
|
|
||||||
// Check the POP3 email mailbox for any new messages. For any that are found,
|
// Check the POP3 email mailbox for any new messages. For any that are found,
|
||||||
// retrieve each message, call processNewMessage to process it and then delete
|
// retrieve each message, call processNewMessage to process it and then delete
|
||||||
@ -300,7 +300,7 @@ module.exports = function(RED) {
|
|||||||
pop3Client.on("dele", function(status, msgNumber) {
|
pop3Client.on("dele", function(status, msgNumber) {
|
||||||
nextMessage();
|
nextMessage();
|
||||||
});
|
});
|
||||||
}; // End of checkPOP3
|
} // End of checkPOP3
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -386,7 +386,7 @@ module.exports = function(RED) {
|
|||||||
}); // End of imap->ready
|
}); // End of imap->ready
|
||||||
imap.connect();
|
imap.connect();
|
||||||
node.status({fill:"grey",shape:"dot",text:"node-red:common.status.connecting"});
|
node.status({fill:"grey",shape:"dot",text:"node-red:common.status.connecting"});
|
||||||
}; // End of checkIMAP
|
} // End of checkIMAP
|
||||||
|
|
||||||
|
|
||||||
// Perform a check of the email inboxes using either POP3 or IMAP
|
// Perform a check of the email inboxes using either POP3 or IMAP
|
||||||
@ -396,7 +396,7 @@ module.exports = function(RED) {
|
|||||||
} else if (node.protocol === "IMAP") {
|
} else if (node.protocol === "IMAP") {
|
||||||
checkIMAP(msg);
|
checkIMAP(msg);
|
||||||
}
|
}
|
||||||
}; // End of checkEmail
|
} // End of checkEmail
|
||||||
|
|
||||||
if (node.protocol === "IMAP") {
|
if (node.protocol === "IMAP") {
|
||||||
imap = new Imap({
|
imap = new Imap({
|
||||||
@ -413,7 +413,7 @@ module.exports = function(RED) {
|
|||||||
node.log(err);
|
node.log(err);
|
||||||
node.status({fill:"red",shape:"ring",text:"email.status.connecterror"});
|
node.status({fill:"red",shape:"ring",text:"email.status.connecterror"});
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
this.on("input", function(msg) {
|
this.on("input", function(msg) {
|
||||||
checkEmail(msg);
|
checkEmail(msg);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user