Comments (6)
I can confirm corrupted extracted attachments. But the extracted files are not all the time corrupted. If I export the file directly from my mail client, it is not corrupted. Example for a corrupted file is a .docx-file:
`…
Content-Type: multipart/mixed; boundary=19046660-30413-1613741647-0
--19046660-30413-1613741647-0
Content-Type: multipart/alternative; boundary=19046660-21017-1613741647-0
--19046660-21017-1613741647-0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
blablablub
=20
=20
=20
=20
=20
--19046660-21017-1613741647-0
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
blablablub
--19046660-21017-1613741647-0----19046660-30413-1613741647-0
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document; name="=?iso-8859-1?Q?Konzept_neue_=D6ffnungsstrukturen=2Edocx?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="=?iso-8859-1?Q?Konzept_neue_=D6ffnungsstrukturen=2Edocx?="
UEsDBBQABgAIAAAAIQAykW9XZgEAAKUFAAATAAgCW0NvbnRlbnRfVHlwZXNd
LnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
blablablub
AACIGgAAd29yZC90aGVtZS90aGVtZTEueG1sUEsBAi0AFAAGAAgAAAAhAOPk
YJGLBAAAygwAABEAAAAAAAAAAAAAAAAAuyAAAHdvcmQvc2V0dGluZ3MueG1s
UEsBAi0AFAAGAAgAAAAhAJN21kkYAQAAQAIAABQAAAAAAAAAAAAAAAAAdSUA
AHdvcmQvd2ViU2V0dGluZ3MueG1sUEsBAi0AFAAGAAgAAAAhAA7O6M8VDAAA
7XMAAA8AAAAAAAAAAAAAAAAAvyYAAHdvcmQvc3R5bGVzLnhtbFBLAQItABQA
BgAIAAAAIQC5dUQfdAEAAPUCAAARAAAAAAAAAAAAAAAAAAEzAABkb2NQcm9w
cy9jb3JlLnhtbFBLAQItABQABgAIAAAAIQBWCQOXugQAAJk6AAASAAAAAAAA
AAAAAAAAAKw1AAB3b3JkL251bWJlcmluZy54bWxQSwECLQAUAAYACAAAACEA
xAmycy8CAABWCAAAEgAAAAAAAAAAAAAAAACWOgAAd29yZC9mb250VGFibGUu
eG1sUEsBAi0AFAAGAAgAAAAhAGkpwCDhAQAA3wMAABAAAAAAAAAAAAAAAAAA
9TwAAGRvY1Byb3BzL2FwcC54bWxQSwUGAAAAAAwADAABAwAADEAAAAAA
--19046660-30413-1613741647-0
Content-Type: image/jpeg; name="image004.jpg"
Content-Transfer-Encoding: base64
Content-ID: [email protected]
Content-Disposition: inline; filename="image004.jpg"
/9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0N
…
ZXZFLFgVdAMZA6P19vwpbrxlLJM3lWx8r7Q0qnzGRipcsAdpxnJrl80Zo9rL
uL+z8Pzc1vxOjbxfcsF22kCeVMHUISqgBlbGBgHJX9Tx0xWXXVjms5obFU+x
gCJTKxUHcCTj1POT7j0FYuaM0e0l3LWCoLZfiblx4mnuLOa2+zpGsiBQVdsq
Airj34QdfU1iUmaM1Dk3ub0qNOirQVj/2Q==
--19046660-30413-1613741647-0
Content-Type: image/jpeg; name="image005.jpg"
Content-Transfer-Encoding: base64
Content-ID: [email protected]
Content-Disposition: inline; filename="image005.jpg"
/9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0N
Dh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/
…
KKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAoo
ooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiii
gAooooA//9k=
--19046660-30413-1613741647-0
Content-Type: image/jpeg; name="image006.jpg"
Content-Transfer-Encoding: base64
Content-ID: [email protected]
Content-Disposition: inline; filename="image006.jpg"
/9j/4AAQSkZJRgABAQEAeAB4AAD/2wBDAAoHBwgHBgoICAgLCgoLDhgQDg0N
Dh0VFhEYIx8lJCIfIiEmKzcvJik0KSEiMEExNDk7Pj4+JS5ESUM8SDc9Pjv/
…
rCitwQoBp9cvtqnc6PZQ7HP23hSOynsJbW9kjNjYvZx5QEndj5z7gjpUG
k+CbeytDa6jdHU0E/wBoQvH5bLJzliVOWJ9/Sunoqfaz7j5I9gooorMsKKKK
ACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA/9k=
--19046660-30413-1613741647-0--
`
from email-to-pdf-converter.
It would be very helpful if you could send me an example for a msg or eml which produces these corrupted attachments.
Please send to: [email protected]
from email-to-pdf-converter.
Thank you very much for your message.
Unfortunately I cannot provide the original file (data privacy). But I tested around and found out the following:
Original eml-file:
...
--19046660-30413-1613741647-0
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document; name="=?iso-8859-1?Q?Konzept_neue_=D6ffnungsstrukturen=2Edocx?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="=?iso-8859-1?Q?Konzept_neue_=D6ffnungsstrukturen=2Edocx?="
...
Result: docx-file is corrupted, IO-Error.
Manipulated eml-file V1 (cut parts within #CUT# #/CUT#):
--19046660-30413-1613741647-0
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document; #CUT#*name="=?iso-8859-1?Q?Konzept_neue_=D6ffnungsstrukturen=2Edocx?="#/CUT#
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="=?iso-8859-1?Q?Konzept_neue_=D6ffnungsstrukturen=2Edocx?="
Result: docx-file is not corrupted and opens fine!
Manipulated eml-file V2 (replace parts within #CUT# #/CUT# by "filename"):
--19046660-30413-1613741647-0
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document; #CUT#name#/CUT#="=?iso-8859-1?Q?Konzept_neue_=D6ffnungsstrukturen=2Edocx?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="=?iso-8859-1?Q?Konzept_neue_=D6ffnungsstrukturen=2Edocx?="
Result: docx-file is not corrupted and opens fine!
Hopefully my hints can nevertheless be helpful.
Regards, mrchang08154
from email-to-pdf-converter.
This might be related with this bug in java-simple-mail
from email-to-pdf-converter.
Please test if this is fixed with release 2.5.3.
from email-to-pdf-converter.
Good Morning,
wow, I can confirm that the issue has gone in release 2.5.3. Thank you very much!
Nice weekend and regards,
MrChang0815
from email-to-pdf-converter.
Related Issues (20)
- Nested Msg. emailAddressList is required
- MsgInsideMsgInsideMsg causes picture not to be rendered?
- Feature Request: option to customize header
- Problem with greek characters HOT 1
- wkhtmltopdf no longer available on some linux systems HOT 1
- Crash on emailAddressList is required HOT 1
- font size problem starting with 2.5.0 HOT 1
- Merge header without javascript
- Creation of empty attachment folders HOT 3
- Store pdf files in a new folder HOT 1
- Fails to build - A problem occurred starting process 'command 'launch4jc'' HOT 1
- Fail if attachment name contains slash
- feature request: extract attachments without making pdf HOT 1
- feature request: option to save HTML HOT 1
- please add header attachments.name in the PDF file HOT 2
- explicites prerequisites
- eml from apple HOT 2
- issue running the setup.exe file
- NullPointer Exception on .msg file
- konverting Email with Attachment in Pdf with Attachment HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from email-to-pdf-converter.