We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supposed after executing getBoxes() the connection will end thus log connection ended but instead is stuck after logging all the key
getBoxes()
connection ended
key
const connection = new Imap(credential); let folders = []; connection.once("ready", () => { connection.getBoxes(function more(err, boxes, path) { if (err) throw err; for (var key in boxes) { if (boxes[key].children) more( undefined, boxes[key].children, path + key + boxes[key].delimiter ); else { console.log(key); folders.push(`INBOX.${key}`); } } }); }); connection.once("error", function (err) { console.log(err); throw err; }); connection.once("end", function () { console.log("Connection ended "); resolve(folders); }); connection.connect();
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Supposed after executing
getBoxes()
the connection will end thus logconnection ended
but instead is stuck after logging all thekey
The text was updated successfully, but these errors were encountered: