Closed tarkal closed 6 years ago
Thanks for filing the issue, I am working on the issue , will fix it and update .
Fixed in version1.0.3
Excellent. I’ll test and confirm. Thx
Tarka L'Herpiniere
On Sun, Dec 24, 2017 at 21:21 ram-sharma-6453 < ram-sharma-6453 ( ram-sharma-6453 notifications@github.com ) > wrote:
Fixed in version1.0.3
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub ( https://github.com/ram-sharma-6453/email-mime-parser/issues/3#issuecomment-353801635 ) , or mute the thread ( https://github.com/notifications/unsubscribe-auth/AGt2P_dXifvrirGeI2dDSJkmSJ2YigIJks5tDrJQgaJpZM4Q9C81 ).
When parsing emails with inline images as cid attachments the images are converted into a base64 string and placed in the body but the base64 prefix is missing the type.
Actual Output:
data:;base64,<base64_image>
Expected Output:
data:image/jpeg;base64,<base64_image>
I have tried it with from different clients all with the same result. I also tested it manually as a unit test with the following sample email: