added support for imap 'autotls' option to 'email in' node (#796)

* added support for imap 'autotls' option to 'email in' node
This commit is contained in:
HiroP0
2021-04-14 18:28:03 +02:00
committed by GitHub
parent 8412beedf2
commit 13d534ee54
6 changed files with 20 additions and 0 deletions

View File

@@ -189,6 +189,7 @@ module.exports = function(RED) {
this.inport = n.port || (globalkeys && globalkeys.port) || "993";
this.box = n.box || "INBOX";
this.useSSL= n.useSSL;
this.autotls= n.autotls;
this.protocol = n.protocol || "IMAP";
this.disposition = n.disposition || "None"; // "None", "Delete", "Read"
this.criteria = n.criteria || "UNSEEN"; // "ALL", "ANSWERED", "FLAGGED", "SEEN", "UNANSWERED", "UNFLAGGED", "UNSEEN"
@@ -491,6 +492,7 @@ module.exports = function(RED) {
host: node.inserver,
port: node.inport,
tls: node.useSSL,
autotls: node.autotls,
tlsOptions: { rejectUnauthorized: false },
connTimeout: tout,
authTimeout: tout