mirror of
https://github.com/nodemailer/wildduck.git
synced 2024-12-29 19:51:17 +08:00
v1.0.37
This commit is contained in:
parent
0bb380ac4c
commit
acadf01a35
3 changed files with 14 additions and 3 deletions
5
imap.js
5
imap.js
|
@ -1797,7 +1797,10 @@ function clearExpiredMessages() {
|
|||
}).project({
|
||||
_id: true,
|
||||
mailbox: true,
|
||||
uid: true
|
||||
uid: true,
|
||||
size: true,
|
||||
map: true,
|
||||
magic: true
|
||||
});
|
||||
|
||||
let deleted = 0;
|
||||
|
|
|
@ -441,7 +441,15 @@ class MessageHandler {
|
|||
if (options.message) {
|
||||
return next(null, options.message);
|
||||
}
|
||||
this.database.collection('messages').findOne(options.query, next);
|
||||
this.database.collection('messages').findOne(options.query, {
|
||||
fields: {
|
||||
mailbox: true,
|
||||
uid: true,
|
||||
size: true,
|
||||
map: true,
|
||||
magic: true
|
||||
}
|
||||
}, next);
|
||||
};
|
||||
|
||||
getMessage((err, message) => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "wildduck",
|
||||
"version": "1.0.36",
|
||||
"version": "1.0.37",
|
||||
"description": "IMAP server built with Node.js and MongoDB",
|
||||
"main": "server.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue