Giter VIP home page Giter VIP logo

Comments (4)

derickr avatar derickr commented on July 19, 2024

I don't understand what you mean. Can you elaborate? Particularly with a code snippet and full email source.

from mail.

ggiacomoo avatar ggiacomoo commented on July 19, 2024

if i save a mail from outlook it create a file with .msg extension (maybe it has its own attached pdf images etc...),
i attach the ".msg" file to mail and send...

when i fetch mail with zetacomponentMail, there is no ".msg" attachment, and i see something "inside"

now i'm solving with other lib, with custom edit...
where i've done a custom search and handling for attachment with type=2, subtype='rfc822' and disposition 'attachment' ,
and i can save the ".msg" as ".eml"

from mail.

derickr avatar derickr commented on July 19, 2024

The Mail package doesn't support the .msg format at all, it is an open format by Microsoft (now). It is also not a format that email servers return.

When reading an email from a server, the Mail component will unpack the full email, including attachments, so that you can read the data in them. I don't think there is currently a way to disable that. It would also not make sense, because the whole purpose of reading and fetching email is that you can see what's inside.

You can use the mail class's generateHeaders and generateBody methods to rebuild the email as it was retrieved from the server, but this will not be the exact same data.

from mail.

ggiacomoo avatar ggiacomoo commented on July 19, 2024

ok, many thanks, i'll try the generateHeaders and generateBody methods as soon possible.
just for now i've done a custom handling over type/subtype to create a file .eml "similar" to .msg

from mail.

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.