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

View file

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