Giter VIP home page Giter VIP logo

Comments (4)

jordan-wright avatar jordan-wright commented on July 28, 2024

Hi @krolaw, thanks for trying out the library! Could you please expand a bit on this? I'm not sure what issue it is you're encountering.

From what I can see, it looks like you're creating an email with no body, only attaching a file. Then, after encoding is performed, the base64 encoding is actually interpreted as the email body text?

from email.

krolaw avatar krolaw commented on July 28, 2024

100% correct. Adding a single carriage return to content gets around the issue.

from email.

cuonglm avatar cuonglm commented on July 28, 2024

@krolaw Which server generates above email content?

Here's an example from postfix:

MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="------------364886E9732896FFFA961C46"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------364886E9732896FFFA961C46
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit



--------------364886E9732896FFFA961C46
Content-Type: text/plain; charset=UTF-8;
 name="test.txt"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="test.txt"

MQo=
--------------364886E9732896FFFA961C46--

and it's parsed correctly after #89

from email.

krolaw avatar krolaw commented on July 28, 2024

I don't believe it was from any server. Possibly output from the library itself, but don't quote me, it was over 5 years ago. I'm betting the issue has long been fixed, so I'm closing it now.

from email.

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.