Git Product home page Git Product logo

Comments (4)

dobesv avatar dobesv commented on August 23, 2024

Here's another sample:

var problem = 'Subject: =?UTF-8?Q?lalalla_[Problem_Type:_=E7=84=A1=E6=AD=A4=E9=A0=85=E7=9B=AE=AE=AE=AE=AE=AE=AE=AE=AE?=';
var folded = require('mimelib-noiconv').foldLine(problem);
console.log(problem);
console.log(folded);

It's important to make sure that the fix doesn't eliminate part of the character code here.

from mimelib.

dobesv avatar dobesv commented on August 23, 2024

I was going to prepare a patch but I'm not sure what the correct behavior would be. I posted a question to stack overflow:

http://stackoverflow.com/questions/8132599/how-should-quoted-printable-mime-words-be-wrapped-to-the-correct-line-length

from mimelib.

andris9 avatar andris9 commented on August 23, 2024

I removed the patch that tried to fold long quoted printable lines. It aint according to the spec (lines cant be longer than 76 chars) but at least it works.

from mimelib.

andris9 avatar andris9 commented on August 23, 2024

This issue is now fixed, quoted printable lines are no longer than 76 + 2 () bytes

from mimelib.

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.