Giter Club home page Giter Club logo

Comments (6)

mrchang0815 avatar mrchang0815 commented on May 30, 2024

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

<style></style>

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.

nickrussler avatar nickrussler commented on May 30, 2024

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.

mrchang0815 avatar mrchang0815 commented on May 30, 2024

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.

nickrussler avatar nickrussler commented on May 30, 2024

This might be related with this bug in java-simple-mail

from email-to-pdf-converter.

nickrussler avatar nickrussler commented on May 30, 2024

Please test if this is fixed with release 2.5.3.

from email-to-pdf-converter.

mrchang0815 avatar mrchang0815 commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.