mailparser icon indicating copy to clipboard operation
mailparser copied to clipboard

Options to keep images in email body do not work

Open ledlabsx opened this issue 2 years ago • 0 comments

Images are removed from the email body and options to keep images have no affect.

const PARSE = require('mailparser').simpleParser;

const s3Parsed = await PARSE(s3Data, {
        skipImageLinks: true,
        keepCidLinks: true
      });

After running this code the embeded images are still being removed from the email body and replaced with base64, as the documentation says..

As an additional bonus all embedded images in HTML (eg. the images that point to attachments using cid: URIs) are replaced with base64 encoded data URIs, so the message can be displayed without any additional processing.

How can this option be disabled, since the options do nothing?

ledlabsx avatar Apr 20 '22 14:04 ledlabsx