From 07e5d9fd65deaeb6faf2279aee313d468911c3c0 Mon Sep 17 00:00:00 2001
From: Dave Conway-Jones
Date: Mon, 26 Oct 2020 09:08:10 +0000
Subject: [PATCH] email node - add msg.priority and msg.headers options
---
social/email/61-email.js | 2 ++
social/email/locales/en-US/61-email.html | 3 ++-
social/email/locales/ja/61-email.html | 2 +-
social/email/package.json | 2 +-
4 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/social/email/61-email.js b/social/email/61-email.js
index 272c7390..f480c60a 100644
--- a/social/email/61-email.js
+++ b/social/email/61-email.js
@@ -94,6 +94,8 @@ module.exports = function(RED) {
sendopts.inReplyTo = msg.inReplyTo;
sendopts.replyTo = msg.replyTo;
sendopts.references = msg.references;
+ sendopts.headers = msg.headers;
+ sendopts.priority = msg.priority;
}
sendopts.subject = msg.topic || msg.title || "Message from Node-RED"; // subject line
if (msg.hasOwnProperty("envelope")) { sendopts.envelope = msg.envelope; }
diff --git a/social/email/locales/en-US/61-email.html b/social/email/locales/en-US/61-email.html
index 282ff3b2..3806b8de 100644
--- a/social/email/locales/en-US/61-email.html
+++ b/social/email/locales/en-US/61-email.html
@@ -2,7 +2,8 @@
Sends the msg.payload
as an email, with a subject of msg.topic
.
The default message recipient can be configured in the node, if it is left
blank it should be set using the msg.to
property of the incoming message. If left blank
- you can also specify any or all of: msg.cc
, msg.bcc
, msg.replyTo
, msg.inReplyTo
, msg.references
properties.
+ you can also specify any or all of: msg.cc
, msg.bcc
, msg.replyTo
,
+ msg.inReplyTo
, msg.references
, msg.headers
, or msg.priority
properties.
You may optionally set msg.from
in the payload which will override the userid
default value.
GMail users
diff --git a/social/email/locales/ja/61-email.html b/social/email/locales/ja/61-email.html
index d8dbfac9..7e7f64c5 100644
--- a/social/email/locales/ja/61-email.html
+++ b/social/email/locales/ja/61-email.html
@@ -2,7 +2,7 @@