mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-01-01 13:13:53 +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({
|
}).project({
|
||||||
_id: true,
|
_id: true,
|
||||||
mailbox: true,
|
mailbox: true,
|
||||||
uid: true
|
uid: true,
|
||||||
|
size: true,
|
||||||
|
map: true,
|
||||||
|
magic: true
|
||||||
});
|
});
|
||||||
|
|
||||||
let deleted = 0;
|
let deleted = 0;
|
||||||
|
|
|
@ -441,7 +441,15 @@ class MessageHandler {
|
||||||
if (options.message) {
|
if (options.message) {
|
||||||
return next(null, 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) => {
|
getMessage((err, message) => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "wildduck",
|
"name": "wildduck",
|
||||||
"version": "1.0.36",
|
"version": "1.0.37",
|
||||||
"description": "IMAP server built with Node.js and MongoDB",
|
"description": "IMAP server built with Node.js and MongoDB",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue