Giter Site home page Giter Site logo

Comments (10)

xeor avatar xeor commented on June 18, 2024

This breaks a lot of things for us as well.. I can't even do

ipdb> p mailparser.parse_from_bytes(orig.as_bytes())
*** TypeError: cannot use a string pattern on a bytes-like object
ipdb> p type(orig)
<class 'email.message.Message'>

The problem does not happen in 3.6.1

from mail-parser.

fedelemantuano avatar fedelemantuano commented on June 18, 2024

Fixed.

from mail-parser.

dfeinzeig avatar dfeinzeig commented on June 18, 2024

ah, this was my fault, sorry. @fedelemantuano I can create a fix to handle the python 3 bytes case.

from mail-parser.

fedelemantuano avatar fedelemantuano commented on June 18, 2024

@dfeinzeig for now we don't need it. If someone will have a problem, we can do that.

from mail-parser.

dfeinzeig avatar dfeinzeig commented on June 18, 2024

from mail-parser.

fedelemantuano avatar fedelemantuano commented on June 18, 2024

Can you send me a complete email with this problem? I want to see what's happen with mail-parser.

from mail-parser.

dfeinzeig avatar dfeinzeig commented on June 18, 2024

@fedelemantuano , i'm picking this back up. i need to add envelope checking and removal back for my purposes. let me know if you have any particular concerns about how you'd like this implemented. i'm thinking i'll likely add in the proper python version checking that i was missing before.

from mail-parser.

dfeinzeig avatar dfeinzeig commented on June 18, 2024

@fedelemantuano , i'm thinking something like this

dfeinzeig@503f502

And this time I've tested it with both python 2 and 3 :), including the exact bytes example the original poster mentioned.

from mail-parser.

fedelemantuano avatar fedelemantuano commented on June 18, 2024

Did you run any test?

from mail-parser.

fedelemantuano avatar fedelemantuano commented on June 18, 2024

I need to have test mails for this case. For now I can't manage this issue.

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.