From 853e88ba24dd035e79ffb2d20c086bd4badfa103 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Thu, 21 Aug 2025 21:47:40 +0100 Subject: [PATCH] rename mtausers property throughout --- social/email/61-email.html | 10 +++++----- social/email/61-email.js | 2 +- social/email/package.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/social/email/61-email.html b/social/email/61-email.html index 9a9fdf49..7c67b171 100644 --- a/social/email/61-email.html +++ b/social/email/61-email.html @@ -476,7 +476,7 @@ starttls: { value: false }, certFile: { value: "" }, keyFile: { value: "" }, - users: { value: [] }, + mtausers: { value: [] }, auth: { value: false }, expert: { value: '{"logger":false}' } }, @@ -506,9 +506,9 @@ } // User Management let cacheItemCount = 0; - if (node.users && node.users.length > 0) { + if (node.mtausers && node.mtausers.length > 0) { cacheItemCount = node.users.length; - node.users.forEach(function (element, index, array) { + node.mtausers.forEach(function (element, index, array) { generateUserEntry(element, index); }); } @@ -597,9 +597,9 @@ oneditsave: function () { let node = this; let cacheUsers = $("#node-input-email-users-container").children(); - node.users = []; + node.mtausers = []; cacheUsers.each(function () { - node.users.push({ + node.mtausers.push({ name: $(this) .find(".userName") .val(), diff --git a/social/email/61-email.js b/social/email/61-email.js index 6a7f7e04..90a52fa0 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.mtausers = n.users; + this.mtausers = n.mtausers; this.auth = n.auth; try { this.options = JSON.parse(n.expert); diff --git a/social/email/package.json b/social/email/package.json index e3e7cbb5..ed1d6664 100644 --- a/social/email/package.json +++ b/social/email/package.json @@ -1,6 +1,6 @@ { "name": "node-red-node-email", - "version": "3.1.0", + "version": "4.0.0", "description": "Node-RED nodes to send and receive simple emails.", "dependencies": { "imap": "^0.8.19",