Giter Site home page Giter Site logo

Comments (2)

bleonard252 avatar bleonard252 commented on June 18, 2024

This could potentially be why JPEG "attachments" aren't working. They parse correctly manually, and when I get the string it's already missing some of the JPEG signature, so it has to be a Mail Parser problem. The following is used to open the section in the email:

--000000000000c14a0405b74d1cf8
Content-Type: image/jpeg
Content-Disposition: attachment
Content-Transfer-Encoding: base64

from mail-parser.

fedelemantuano avatar fedelemantuano commented on June 18, 2024

For @bleonard252 when there is base64 mailparser doesn't change anything.

 if transfer_encoding == "base64" or (
                       transfer_encoding == "quoted-\
                       printable" and "application" in mail_content_type):

                        payload = p.get_payload(decode=False)
                        binary = True

For @LiamMahoney I tryed to download attachment from my mail client and the fingerprint it's different from mine and yours.
I removed the strip part from that function, but the fingerprint it's different.
I used vimdiff for try to understand. The left part it's mailparser and the right part it's mail client. Change the last line.
I think that it's depend from python library.
This is a strange case, becouse you have an sample in html. So you could have some different that depend from client.
In binary case, you don't have this issue.

image

from mail-parser.

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.