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");
|
||||
* 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
|
||||
}; // End of processNewMessage
|
||||
} // End of processNewMessage
|
||||
|
||||
// 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
|
||||
@ -300,7 +300,7 @@ module.exports = function(RED) {
|
||||
pop3Client.on("dele", function(status, msgNumber) {
|
||||
nextMessage();
|
||||
});
|
||||
}; // End of checkPOP3
|
||||
} // End of checkPOP3
|
||||
|
||||
|
||||
//
|
||||
@ -386,7 +386,7 @@ module.exports = function(RED) {
|
||||
}); // End of imap->ready
|
||||
imap.connect();
|
||||
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
|
||||
@ -396,7 +396,7 @@ module.exports = function(RED) {
|
||||
} else if (node.protocol === "IMAP") {
|
||||
checkIMAP(msg);
|
||||
}
|
||||
}; // End of checkEmail
|
||||
} // End of checkEmail
|
||||
|
||||
if (node.protocol === "IMAP") {
|
||||
imap = new Imap({
|
||||
@ -413,7 +413,7 @@ module.exports = function(RED) {
|
||||
node.log(err);
|
||||
node.status({fill:"red",shape:"ring",text:"email.status.connecterror"});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
this.on("input", function(msg) {
|
||||
checkEmail(msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user