rob-luke / emails-html-to-pdf

Convert emails without attachments to pdf and send as email
32 stars 7 forks source link

Handling Inline Image? #35

Open ajquick opened 2 years ago

ajquick commented 2 years ago

I thought I had a failing installation because my first test email was not being converted.

The email had an inline image that was attached to the email. I guess I didn't know that in some cases (Gmail in this instance) an HTML image in the body of the email is also attached to the email itself.

Could there be a way to handle attached images in this manner? Perhaps it allows attachments, but only if the attachment is also used in the body of the message? That way it skips legitimately attached files but does act when the attachment is part of the email body?

My Paperless-ng(x) filters out all non-PDF attachments already, so it wouldn't import the email with the inline images anyways.