1
0
Fork 0
mirror of https://github.com/dadada/inbox2matrix.git synced 2025-06-08 01:53:57 +02:00

Fix: IMAP fetch on closed session

This commit is contained in:
Tim Schubert 2019-08-08 00:50:09 +02:00
parent 747da42861
commit 153c7b29fe
2 changed files with 4 additions and 4 deletions

View file

@ -71,11 +71,11 @@ function fetchAndReport(results) {
fetched.once('end', function() {
console.log('Done fetching all messages!');
imap.end();
});
}
function processUnseen() {
console.log("processUnseen");
imap.search(['UNSEEN'], (err, results) => {
if (err) console.log(err);
else {