From 74d51f5a79990240d3be44443c239d7c644d6393 Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Tue, 20 Mar 2018 17:18:20 +0000 Subject: [PATCH] Tiny tidy of email node MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit really needs a proper re-write… --- social/email/61-email.html | 4 ++-- social/email/61-email.js | 5 +++-- social/email/package.json | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/social/email/61-email.html b/social/email/61-email.html index c7ddcc8d..aff990e7 100644 --- a/social/email/61-email.html +++ b/social/email/61-email.html @@ -97,7 +97,7 @@ return this.dname||this.name||"email"; }, labelStyle: function() { - return (this.dname||!this.topic)?"node_label_italic":""; + return (this.dname)?"node_label_italic":""; }, oneditprepare: function() { if (this.credentials.global) { @@ -249,7 +249,7 @@ return this.name||"email"; }, labelStyle: function() { - return (this.name||!this.topic)?"node_label_italic":""; + return (this.name)?"node_label_italic":""; }, oneditprepare: function() { if (this.credentials.global) { diff --git a/social/email/61-email.js b/social/email/61-email.js index d22ced3a..1ab79102 100644 --- a/social/email/61-email.js +++ b/social/email/61-email.js @@ -203,6 +203,7 @@ module.exports = function(RED) { function checkPOP3(msg) { var currentMessage; var maxMessage; + //node.log("Checking POP3 for new messages"); // Form a new connection to our email server using POP3. var pop3Client = new POP3Client( @@ -237,7 +238,7 @@ module.exports = function(RED) { }); pop3Client.on("error", function(err) { - node.log("We caught an error: " + JSON.stringify(err)); + node.log("error: " + JSON.stringify(err)); }); pop3Client.on("connect", function() { @@ -297,7 +298,7 @@ module.exports = function(RED) { // // Check the email sever using the IMAP protocol for new messages. function checkIMAP(msg) { - node.log("Checking IMAP for new messages"); + //node.log("Checking IMAP for new messages"); // We get back a 'ready' event once we have connected to imap imap.once("ready", function() { node.status({fill:"blue", shape:"dot", text:"email.status.fetching"}); diff --git a/social/email/package.json b/social/email/package.json index 2f90f14f..de19cd58 100644 --- a/social/email/package.json +++ b/social/email/package.json @@ -1,11 +1,11 @@ { "name": "node-red-node-email", - "version": "0.1.24", + "version": "0.1.25", "description": "Node-RED nodes to send and receive simple emails", "dependencies": { "nodemailer": "^1.11.0", "poplib": "^0.1.7", - "mailparser": "^0.6.1", + "mailparser": "^0.6.2", "imap": "^0.8.19" }, "repository": {