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",