We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7760019 commit 7daa0e3Copy full SHA for 7daa0e3
imap-core/lib/indexer/indexer.js
@@ -626,11 +626,12 @@ class Indexer {
626
mimeTree.attachmentMap[node.attachmentId] = id;
627
628
let attachmentInfo = maildata.attachments && maildata.attachments.find(a => a.id === node.attachmentId); // get reference to attachment info
629
+
630
if (attachmentInfo && node.body) {
631
attachmentInfo.size = node.body.length;
632
}
633
- if (fileContentHash) {
634
+ if (attachmentInfo && fileContentHash) {
635
attachmentInfo.fileContentHash = fileContentHash;
636
637
0 commit comments