this.on("input", function(msg) {
util.log("[opening box]");
openInbox(function(err, mailbox) {
if (err) node.log("error : "+err);
util.log("[fetching]");
imap.seq.fetch(mailbox.messages.total + ':*', { struct: false },
function openInbox(cb) {
util.log("[openInbox called]");
imap.connect(function(err) {
util.log("[openInbox pre-error message]");
if (err) util.log("[imap] : error : "+err);
util.log("[openInbox pre-opening]");
imap.openBox('INBOX', true, cb);
});
util.log("[openInbox exited]");
}
Hi Dave,Lack of console messages - that's a start. All I see in regard to the imap node is [log] [imap:WorkMail] repeat = 30000 after starting the flow and that's the end of it. I tried different times between email checks, but that didn't help. So to conclude, I don't even get a failure (or success) to connect. All of this is happening on a Raspberry Pi with the latest Raspian, if that helps. As a workaround I could script something in Python that dumps the number of unread emails into a file, but that's far from Node-RED elegance...Boris
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.