mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-11-11 01:54:04 +08:00
log expunged message update
This commit is contained in:
parent
a3ebc2442e
commit
7edaf8e0d0
2 changed files with 12 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
const errors = require('../../../lib/errors.js');
|
||||
const imapTools = require('../imap-tools');
|
||||
|
||||
module.exports = {
|
||||
|
@ -161,10 +162,14 @@ module.exports = {
|
|||
// check if only messages that exist are referenced
|
||||
if (!this._server.options.allowStoreExpunged && success === true && !silent && messages.length) {
|
||||
for (let i = this.selected.notifications.length - 1; i >= 0; i--) {
|
||||
if (this.selected.notifications[i].command === 'EXPUNGE' && messages.indexOf(this.selected.notifications[i].uid) >= 0) {
|
||||
if (this.selected.notifications[i].command === 'EXPUNGE' && messages.includes(this.selected.notifications[i].uid)) {
|
||||
let err = new Error('Some of the messages no longer exist');
|
||||
errors.notifyConnection(this, err, {
|
||||
uid: this.selected.notifications[i].uid
|
||||
});
|
||||
response = {
|
||||
response: 'NO',
|
||||
message: 'Some of the messages no longer exist'
|
||||
message: err.message
|
||||
};
|
||||
break;
|
||||
}
|
||||
|
|
10
package.json
10
package.json
|
@ -32,7 +32,7 @@
|
|||
"humanname": "0.2.2",
|
||||
"humanparser": "1.5.0",
|
||||
"iconv-lite": "0.4.19",
|
||||
"joi": "11.0.2",
|
||||
"joi": "11.1.1",
|
||||
"js-yaml": "3.10.0",
|
||||
"libbase64": "0.2.0",
|
||||
"libmime": "3.1.0",
|
||||
|
@ -43,17 +43,17 @@
|
|||
"mongo-cursor-pagination": "5.0.0",
|
||||
"mongodb": "2.2.31",
|
||||
"node-redis-scripty": "0.0.5",
|
||||
"nodemailer": "4.1.0",
|
||||
"nodemailer": "4.1.1",
|
||||
"npmlog": "4.1.2",
|
||||
"openpgp": "2.5.10",
|
||||
"openpgp": "2.5.11",
|
||||
"qrcode": "0.9.0",
|
||||
"redfour": "1.0.2",
|
||||
"redis": "2.8.0",
|
||||
"restify": "6.0.1",
|
||||
"seq-index": "1.1.0",
|
||||
"smtp-server": "3.1.0",
|
||||
"smtp-server": "3.2.0",
|
||||
"speakeasy": "2.0.0",
|
||||
"tlds": "1.196.0",
|
||||
"tlds": "1.197.0",
|
||||
"utf7": "1.0.2",
|
||||
"uuid": "3.1.0",
|
||||
"wild-config": "1.3.5"
|
||||
|
|
Loading…
Reference in a new issue