mailparser
mailparser copied to clipboard
Options to keep images in email body do not work
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?