From 63a55ec0f6989cf6766933a0cc75dc721f809a28 Mon Sep 17 00:00:00 2001
From: Markin Igor <markin.io210@gmail.com>
Date: Mon, 2 Dec 2019 16:27:37 +0200
Subject: [PATCH] Log

---
 javascript/src/helpers/mailparser.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/javascript/src/helpers/mailparser.js b/javascript/src/helpers/mailparser.js
index 8d1658a..94dbb07 100644
--- a/javascript/src/helpers/mailparser.js
+++ b/javascript/src/helpers/mailparser.js
@@ -302,7 +302,9 @@ export function getHTML(mime, parts) {
     }
     contentDisposition = contentDisposition[0];
     if (contentDisposition.indexOf("attachment") >= 0 || contentDisposition.indexOf("inline") >= 0) {
+
       let contentId = getHeaderValue("content-id", parts[i]);
+      console.log("CID", contentId);
       if (contentId === null || contentId === undefined) {
         continue;
       }
@@ -315,9 +317,12 @@ export function getHTML(mime, parts) {
       if (contentType === null || contentType === undefined) {
         continue;
       }
+      console.log("CID2", contentId);
       contentType = contentType[0];
+      console.log("ContentTYpe", contentType);
       const normalizedBody = getBody(mime, parts[i]).replace(newline, "");
       const src = "data:" + contentType + ";base64, " + normalizedBody;
+      console.log("SRC", src);
       html = html.split(contentId).join(src);
     }
   }
-- 
GitLab