mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Email - nsure imap tries to disconnect nicely first.... then destroy
to close #784
This commit is contained in:
parent
5dd03b7073
commit
c1e83bf06f
@ -506,7 +506,11 @@ module.exports = function(RED) {
|
|||||||
if (this.interval_id != null) {
|
if (this.interval_id != null) {
|
||||||
clearTimeout(this.interval_id);
|
clearTimeout(this.interval_id);
|
||||||
}
|
}
|
||||||
if (imap) { imap.destroy(); }
|
if (imap) {
|
||||||
|
imap.end();
|
||||||
|
setTimeout(function() { imap.destroy(); },1000);
|
||||||
|
node.status({});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function setInputRepeatTimeout() {
|
function setInputRepeatTimeout() {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-node-email",
|
"name": "node-red-node-email",
|
||||||
"version": "1.10.0",
|
"version": "1.10.1",
|
||||||
"description": "Node-RED nodes to send and receive simple emails.",
|
"description": "Node-RED nodes to send and receive simple emails.",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"imap": "^0.8.19",
|
"imap": "^0.8.19",
|
||||||
@ -9,7 +9,13 @@
|
|||||||
"nodemailer": "~6.5.0",
|
"nodemailer": "~6.5.0",
|
||||||
"smtp-server": "^3.8.0"
|
"smtp-server": "^3.8.0"
|
||||||
},
|
},
|
||||||
"bundledDependencies" : ["imap","poplib","mailparser","nodemailer","smtp-server"],
|
"bundledDependencies": [
|
||||||
|
"imap",
|
||||||
|
"poplib",
|
||||||
|
"mailparser",
|
||||||
|
"nodemailer",
|
||||||
|
"smtp-server"
|
||||||
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/node-red/node-red-nodes/tree/master/social/email"
|
"url": "https://github.com/node-red/node-red-nodes/tree/master/social/email"
|
||||||
|
Loading…
Reference in New Issue
Block a user