mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-09-04 12:14:53 +08:00
Fixed POP3 log counters
This commit is contained in:
parent
c09de6a17a
commit
524f17eebc
1 changed files with 3 additions and 3 deletions
6
pop3.js
6
pop3.js
|
@ -133,14 +133,14 @@ const serverOptions = {
|
|||
if (update.seen && update.seen.length) {
|
||||
return markAsSeen(session, update.seen, next);
|
||||
}
|
||||
next();
|
||||
next(null, 0);
|
||||
};
|
||||
|
||||
let handleDeleted = next => {
|
||||
if (update.deleted && update.deleted.length) {
|
||||
return trashMessages(session, update.deleted, next);
|
||||
}
|
||||
next();
|
||||
next(null, 0);
|
||||
};
|
||||
|
||||
handleSeen((err, seenCount) => {
|
||||
|
@ -262,7 +262,7 @@ function markAsSeen(session, messages, callback) {
|
|||
return result;
|
||||
}), () => {
|
||||
messageHandler.notifier.fire(mailboxData.user, mailboxData.path);
|
||||
callback(null, messages.count);
|
||||
callback(null, messages.length);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue