Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options to keep images in email body do not work #315

Open
ledlabsx opened this issue Apr 20, 2022 · 0 comments
Open

Options to keep images in email body do not work #315

ledlabsx opened this issue Apr 20, 2022 · 0 comments

Comments

@ledlabsx
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant