fix incorrect test of email header

fix for #118 (mea culpa)
This commit is contained in:
Dave Conway-Jones
2015-06-19 22:38:44 +01:00
parent d21b24bbce
commit 04f43851e5
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {