From 9d57aa1942d267195952655cec377ca9222280eb Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Mon, 4 Aug 2025 17:12:02 +0100 Subject: [PATCH] Bump email packages, rename users internal variable. --- social/email/61-email.js | 6 +++--- social/email/package.json | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/social/email/61-email.js b/social/email/61-email.js index ccb99d7f..6a7f7e04 100644 --- a/social/email/61-email.js +++ b/social/email/61-email.js @@ -629,7 +629,7 @@ module.exports = function(RED) { this.starttls = n.starttls; this.certFile = n.certFile; this.keyFile = n.keyFile; - this.users = n.users; + this.mtausers = n.users; this.auth = n.auth; try { this.options = JSON.parse(n.expert); @@ -687,10 +687,10 @@ module.exports = function(RED) { } node.options.onAuth = function (auth, session, callback) { - let id = node.users.findIndex(function (item) { + let id = node.mtausers.findIndex(function (item) { return item.name === auth.username; }); - if (id >= 0 && node.users[id].password === auth.password) { + if (id >= 0 && node.mtausers[id].password === auth.password) { callback(null, { user: id + 1 }); } else { callback(new Error("Invalid username or password")); diff --git a/social/email/package.json b/social/email/package.json index e544f32e..e3e7cbb5 100644 --- a/social/email/package.json +++ b/social/email/package.json @@ -1,13 +1,13 @@ { "name": "node-red-node-email", - "version": "3.0.4", + "version": "3.1.0", "description": "Node-RED nodes to send and receive simple emails.", "dependencies": { "imap": "^0.8.19", "node-pop3": "^0.9.1", - "mailparser": "^3.7.2", - "nodemailer": "^6.10.1", - "smtp-server": "^3.13.6" + "mailparser": "^3.7.4", + "nodemailer": "^7.0.5", + "smtp-server": "^3.14.0" }, "bundledDependencies": [ "imap",