From 510fab7b8f0623c12f20e12454559faddee43606 Mon Sep 17 00:00:00 2001 From: Nicholas O'Leary Date: Wed, 13 Nov 2013 22:20:36 +0000 Subject: [PATCH] IMAP node should not try to load settings file directly --- nodes/social/61-imap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes/social/61-imap.js b/nodes/social/61-imap.js index e5237a599..c4538c95a 100644 --- a/nodes/social/61-imap.js +++ b/nodes/social/61-imap.js @@ -20,7 +20,7 @@ var util = require('util'); var oldmail = {}; try { - var emailkey = require("../../settings").email || require("../../../emailkeys.js"); + var emailkey = RED.settings.email || require("../../../emailkeys.js"); } catch(err) { throw new Error("Failed to load Email credentials"); }