From 04f43851e572f17ab5abbbd36378fa388a883369 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Fri, 19 Jun 2015 22:38:44 +0100 Subject: [PATCH] fix incorrect test of email header fix for #118 (mea culpa) --- social/email/61-email.js | 2 +- social/email/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/social/email/61-email.js b/social/email/61-email.js index dfc594b6..fa969d3d 100644 --- a/social/email/61-email.js +++ b/social/email/61-email.js @@ -203,7 +203,7 @@ module.exports = function(RED) { if (info.which !== 'TEXT') { var head = Imap.parseHeader(buffer); if (head.hasOwnProperty("from")) { pay.from = head.from[0]; } - if (head.hasOwnProperty("topic")) { pay.topic = head.subject[0]; } + if (head.hasOwnProperty("subject")) { pay.topic = head.subject[0]; } if (head.hasOwnProperty("date")) { pay.date = head.date[0]; } pay.header = head; } else { diff --git a/social/email/package.json b/social/email/package.json index 8c77a814..f407b388 100644 --- a/social/email/package.json +++ b/social/email/package.json @@ -1,6 +1,6 @@ { "name" : "node-red-node-email", - "version" : "0.0.4", + "version" : "0.0.5", "description" : "Node-RED nodes to send and receive simple emails", "dependencies" : { "nodemailer" : "1.3.4",