mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-09-20 07:16:05 +08:00
Added message size value to the response of message upload request
This commit is contained in:
parent
c6007001e0
commit
a8348e893a
|
@ -3331,6 +3331,9 @@ components:
|
|||
mailbox:
|
||||
type: string
|
||||
description: Mailbox ID the message was stored into
|
||||
size:
|
||||
type: number
|
||||
description: Size of the RFC822 formatted email
|
||||
description: Message information
|
||||
title: ''
|
||||
Forwarded:
|
||||
|
|
|
@ -1833,7 +1833,8 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
|
|||
message: messageData
|
||||
? {
|
||||
id: messageData.uid,
|
||||
mailbox: messageData.mailbox
|
||||
mailbox: messageData.mailbox,
|
||||
size: messageData.size
|
||||
}
|
||||
: false
|
||||
};
|
||||
|
@ -2269,7 +2270,8 @@ module.exports = (db, server, messageHandler, userHandler, storageHandler, setti
|
|||
|
||||
response.message = {
|
||||
id: moved.info && moved.info.destinationUid && moved.info.destinationUid[0],
|
||||
mailbox: moved.info && moved.info.target
|
||||
mailbox: moved.info && moved.info.target,
|
||||
size: messageData.size
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -592,6 +592,7 @@ class MessageHandler {
|
|||
id: messageData._id.toString(),
|
||||
mailbox: mailboxData._id.toString(),
|
||||
mailboxPath: mailboxData.path,
|
||||
size,
|
||||
status: 'new'
|
||||
});
|
||||
};
|
||||
|
|
12
package.json
12
package.json
|
@ -26,7 +26,7 @@
|
|||
"ajv": "8.11.0",
|
||||
"chai": "4.3.6",
|
||||
"docsify-cli": "4.4.4",
|
||||
"eslint": "8.20.0",
|
||||
"eslint": "8.21.0",
|
||||
"eslint-config-nodemailer": "1.2.0",
|
||||
"eslint-config-prettier": "8.5.0",
|
||||
"grunt": "1.5.3",
|
||||
|
@ -57,11 +57,11 @@
|
|||
"gelf": "2.0.1",
|
||||
"generate-password": "1.7.0",
|
||||
"he": "1.2.0",
|
||||
"html-to-text": "8.2.0",
|
||||
"html-to-text": "8.2.1",
|
||||
"humanname": "0.2.2",
|
||||
"iconv-lite": "0.6.3",
|
||||
"ioredfour": "1.2.0-ioredis-06",
|
||||
"ioredis": "5.2.1",
|
||||
"ioredis": "5.2.2",
|
||||
"ipaddr.js": "2.0.1",
|
||||
"isemail": "3.2.0",
|
||||
"joi": "17.6.0",
|
||||
|
@ -70,17 +70,17 @@
|
|||
"libbase64": "1.2.1",
|
||||
"libmime": "5.1.0",
|
||||
"libqp": "1.1.0",
|
||||
"mailauth": "3.0.3",
|
||||
"mailauth": "4.0.0",
|
||||
"mailsplit": "5.3.2",
|
||||
"mobileconfig": "2.4.0",
|
||||
"mongo-cursor-pagination": "7.6.1",
|
||||
"mongodb": "4.8.0",
|
||||
"mongodb": "4.8.1",
|
||||
"mongodb-extended-json": "1.11.1",
|
||||
"node-forge": "1.3.1",
|
||||
"node-html-parser": "5.3.3",
|
||||
"nodemailer": "6.7.7",
|
||||
"npmlog": "6.0.2",
|
||||
"openpgp": "5.3.1",
|
||||
"openpgp": "5.4.0",
|
||||
"pem-jwk": "2.0.0",
|
||||
"punycode": "2.1.1",
|
||||
"pwnedpasswords": "1.0.6",
|
||||
|
|
Loading…
Reference in a new issue