Giter Club home page Giter Club logo

Comments (8)

fedelemantuano avatar fedelemantuano commented on May 31, 2024

Hi @kojibhy,

can you give me more details?
What is your input? So I can understand what's happen.

from mail-parser.

kojibhy avatar kojibhy commented on May 31, 2024

Hi, i am using Python3:
cannot decode many fields this is exemple:
b'"\xdd\xca\xc2\xc0\xc9\xd0\xc8\xcd\xc3" [email protected]'

sometimes i get this:

Traceback (most recent call last):
File "/root/PythonProjects/venv/lib/python3.5/site-packages/mailparser/utils.py", line 71, in ported_string
return six.text_type(raw_data, encoding).strip()
LookupError: unknown encoding: unknown-8bit

and this:

File "/root/PythonProjects/venv/lib/python3.5/site-packages/mailparser/utils.py", line 73, in ported_string
return six.text_type(raw_data, "utf-8").strip()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 41: invalid continuation byte

from mail-parser.

fedelemantuano avatar fedelemantuano commented on May 31, 2024

mailparser can't use encoding of mail because it's not known and fail the parsing.

LookupError: unknown encoding: unknown-8bit

Can you give me the raw mail?

from mail-parser.

kojibhy avatar kojibhy commented on May 31, 2024

yes where i can send it

from mail-parser.

fedelemantuano avatar fedelemantuano commented on May 31, 2024

Hi @kojibhy,
you could make a new gist.

from mail-parser.

fedelemantuano avatar fedelemantuano commented on May 31, 2024

Hi @kojibhy,

can you give me an update?

from mail-parser.

kojibhy avatar kojibhy commented on May 31, 2024

i collect error msg for you, but i can`t share this msg in public

from mail-parser.

fedelemantuano avatar fedelemantuano commented on May 31, 2024

I tested all your mail with version 1.2.0 and I didn't have any errors. So I can close 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.