mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Allow Email node to select folder other than INBOX
Closes #215 Thanks to @aamol for spotting
This commit is contained in:
parent
46cc9bb906
commit
4c589f14f5
@ -318,7 +318,7 @@ module.exports = function(RED) {
|
|||||||
node.status({fill:"blue", shape:"dot", text:"email.status.fetching"});
|
node.status({fill:"blue", shape:"dot", text:"email.status.fetching"});
|
||||||
//console.log("> ready");
|
//console.log("> ready");
|
||||||
// Open the inbox folder
|
// Open the inbox folder
|
||||||
imap.openBox('INBOX', // Mailbox name
|
imap.openBox(node.box, // Mailbox name
|
||||||
false, // Open readonly?
|
false, // Open readonly?
|
||||||
function(err, box) {
|
function(err, box) {
|
||||||
//console.log("> Inbox open: %j", box);
|
//console.log("> Inbox open: %j", box);
|
||||||
|
Loading…
Reference in New Issue
Block a user