add missing header property from email in node

to close #281
Thanks @obook
This commit is contained in:
Dave Conway-Jones
2017-02-22 17:55:46 +00:00
parent a4eaf55961
commit dc1ca765ec
2 changed files with 2 additions and 1 deletions

View File

@@ -185,6 +185,7 @@ module.exports = function(RED) {
msg.payload = mailMessage.text;
msg.topic = mailMessage.subject;
msg.date = mailMessage.date;
msg.header = mailMessage.headers;
if (mailMessage.html) { msg.html = mailMessage.html; }
if (mailMessage.to && mailMessage.from.to > 0) { msg.to = mailMessage.to; }
if (mailMessage.cc && mailMessage.from.cc > 0) { msg.cc = mailMessage.cc; }