From 9cc641441d88ebfeceeb3d7ceb8cd3c85af5a2e4 Mon Sep 17 00:00:00 2001 From: Andris Reinman Date: Fri, 22 Sep 2017 16:02:05 +0300 Subject: [PATCH] store encoded size for attachment --- lib/attachments/gridstore-storage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/attachments/gridstore-storage.js b/lib/attachments/gridstore-storage.js index c641bfcd..466e53c7 100644 --- a/lib/attachments/gridstore-storage.js +++ b/lib/attachments/gridstore-storage.js @@ -48,6 +48,7 @@ class GridstoreStorage { let metadata = { m: attachment.magic, c: 1, + esize: attachment.body.length, transferEncoding: attachment.transferEncoding };