This commit is contained in:
Andris Reinman 2018-09-25 11:29:51 +03:00
parent 3fb0b13a79
commit a866c0ece1
2 changed files with 7 additions and 7 deletions

View file

@ -157,12 +157,12 @@ module.exports = server => (mailbox, update, session, callback) => {
}
if (queryAll && !session.selected.uidList.includes(message.uid)) {
// skip processing messages that we do not know about yet
return processNext();
return setImmediate(processNext);
}
if (update.unchangedSince && message.modseq > update.unchangedSince) {
modified.push(message.uid);
return processNext();
return setImmediate(processNext);
}
let flagsupdate = false; // query object for updates
@ -389,21 +389,21 @@ module.exports = server => (mailbox, update, session, callback) => {
server.notifier.addEntries(mailboxData, notifyEntries, () => {
notifyEntries = [];
server.notifier.fire(session.user.id);
processNext();
return setImmediate(processNext);
});
}
);
} else {
processNext();
return setImmediate(processNext);
}
});
} else {
processNext();
return setImmediate(processNext);
}
});
};
processNext();
return setImmediate(processNext);
}
);
};

View file

@ -1,6 +1,6 @@
{
"name": "wildduck",
"version": "1.4.17",
"version": "1.4.18",
"description": "IMAP/POP3 server built with Node.js and MongoDB",
"main": "server.js",
"scripts": {