Giter Club home page Giter Club logo

Comments (9)

zbateson avatar zbateson commented on August 21, 2024 1

Hi @postme --

I've release 0.4.3 for this.

Thanks,
Zaahid

from mail-mime-parser.

postme avatar postme commented on August 21, 2024 1

Nope, this turned out to be completely my fault, I had a shameful bug, I fixed it and all testcases now run without issue, yay!

from mail-mime-parser.

mstaack avatar mstaack commented on August 21, 2024

@postme can you add a failing test for your message?

from mail-mime-parser.

postme avatar postme commented on August 21, 2024

@zbateson What do you mean exactly with a failing test?

from mail-mime-parser.

postme avatar postme commented on August 21, 2024

Adding content-type: text/plain to the header resolves the issue, so it looks like getTextContent() gets thrown ofcourse if there's an email with a text/plain body but without a content-type declaration in the header.

Date: Fri, 10 Jul 2016 15:29:52 GMT
From: "Test Sender" <[email protected]>
To: "Test Recipient" <[email protected]>
Message-ID: <[email protected]>
Subject: [36]-text-plain-ipad
MIME-Version: 1.0
X-Mailer: iPad Mail (12H143)
Content-Type: text/plain

Test

No problems with this version.

from mail-mime-parser.

zbateson avatar zbateson commented on August 21, 2024

Hi @postme,

The failling test question was from @mstaack :) loving the involvement!

Unfortunately because of this I'm going to announce 0.4.2 as dead. My new PartFilter class didn't account for header defaults, and I'm rushing in a fix now and looking at how best to resolve it with versioning/composer.

Thanks,
Zaahid

from mail-mime-parser.

postme avatar postme commented on August 21, 2024

Ok everythings back to usual, the testcase is parsing as usual and applemail testcase for multiple html bodies is failing as expected.

from mail-mime-parser.

zbateson avatar zbateson commented on August 21, 2024

😢 it shouldn't fail though I even have test cases that should match what you're trying to do...

I still have the apple mail in question, but can you share the calls you're making to remove the html parts and tell me how it's failing (again)?

So sorry this one's dragging on so long for you!

from mail-mime-parser.

zbateson avatar zbateson commented on August 21, 2024

Aaah, I'm so happy to hear that 😄

from mail-mime-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.