fix attachment logging

This commit is contained in:
Andris Reinman 2020-09-18 12:06:28 +03:00
parent d7392e83e9
commit 8dfa8f4880
2 changed files with 2 additions and 2 deletions

View file

@ -628,7 +628,7 @@ class Indexer {
}
mimeTree.attachmentMap[node.attachmentId] = id;
let attachmentInfo = mimeTree.attachments && mimeTree.attachments.find(a => a.id === node.attachmentId);
let attachmentInfo = maildata.attachments && maildata.attachments.find(a => a.id === node.attachmentId);
if (attachmentInfo && node.body) {
attachmentInfo.size = node.body.length;
}

View file

@ -1,6 +1,6 @@
{
"name": "wildduck",
"version": "1.29.5",
"version": "1.29.6",
"description": "IMAP/POP3 server built with Node.js and MongoDB",
"main": "server.js",
"scripts": {