diff --git a/imap-core/lib/indexer/indexer.js b/imap-core/lib/indexer/indexer.js index 484bb4c8..8d6607b5 100644 --- a/imap-core/lib/indexer/indexer.js +++ b/imap-core/lib/indexer/indexer.js @@ -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; } diff --git a/package.json b/package.json index acff79a5..7c85b69c 100644 --- a/package.json +++ b/package.json @@ -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": {