mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
parent
d21b24bbce
commit
04f43851e5
@ -203,7 +203,7 @@ module.exports = function(RED) {
|
|||||||
if (info.which !== 'TEXT') {
|
if (info.which !== 'TEXT') {
|
||||||
var head = Imap.parseHeader(buffer);
|
var head = Imap.parseHeader(buffer);
|
||||||
if (head.hasOwnProperty("from")) { pay.from = head.from[0]; }
|
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]; }
|
if (head.hasOwnProperty("date")) { pay.date = head.date[0]; }
|
||||||
pay.header = head;
|
pay.header = head;
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-email",
|
"name" : "node-red-node-email",
|
||||||
"version" : "0.0.4",
|
"version" : "0.0.5",
|
||||||
"description" : "Node-RED nodes to send and receive simple emails",
|
"description" : "Node-RED nodes to send and receive simple emails",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
"nodemailer" : "1.3.4",
|
"nodemailer" : "1.3.4",
|
||||||
|
Loading…
Reference in New Issue
Block a user