You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently got an email in such format, main content-type is multipart/mixed, one of the part in body is text/plain with Content-Transfer-Encoding: quoted-printable, it contains HTML code and base64 encoded image. enmime doesn't convert html to text, and the encoded image is included in result too.
Question: should enmime detect HTML format and convert it to text in such case?
Currently enmime trusts the Content-Type when it comes to text/plain vs text/html, so this is working as expected. I'm not necessarily opposed to trying to detect and fix the content type, although it should be guarded behind an option. I suspect spammers/phishers may try to bypass filters with this method, so it could pose some danger to the end user.
Dear all,
I recently got an email in such format, main content-type is
multipart/mixed
, one of the part in body is text/plain withContent-Transfer-Encoding: quoted-printable
, it contains HTML code and base64 encoded image. enmime doesn't convert html to text, and the encoded image is included in result too.Question: should enmime detect HTML format and convert it to text in such case?
The text was updated successfully, but these errors were encountered: