Comments (4)
Also when using the str2arr
some characters are corrupted when decoding. Why not use the TextEncoder class to convert text to binary? Using your own functions causes TextDecoder
not to work as expected.
from emailjs-mime-parser.
The character corruption issue has been fixed in 2.0.6.
from emailjs-mime-parser.
The API of the library was written so that it returns typed arrays no matter what the node was. Also, any text is converted to UTF-8, regardless of the input. Therefore, i don't quite see the benefit for this approach, as it's just one call to the TextEncoder...
from emailjs-mime-parser.
Well one of the problem this library has is that, for example, it converts base64 string into a typed array, then it converts them into a regular string and then again into a typed array. This unnecessary conversion is the reason why sometimes you get corrupt data when using this library.
from emailjs-mime-parser.
Related Issues (20)
- Cannot get attachment filename from Content-Disposition header HOT 6
- How do I use this parser exactly? HOT 8
- Mail parsing fails when there is corrupted body content HOT 2
- Decoding of Base64 body HOT 9
- An in-range update of sinon is breaking the build 🚨 HOT 4
- How to use "charset=binary" by default? HOT 4
- Something wrong in your decoding functions HOT 5
- Unable to use "emailjs-mime-parser" since no "dist" directory included HOT 2
- An in-range update of sinon is breaking the build 🚨 HOT 1
- Using emailjs-mime-parser HOT 4
- Base64 encoded Japanese character not decoded as expected HOT 5
- How can I restructure message from mimeNodes? HOT 1
- Denial of Service Vulnerability - No limit on empty attachments HOT 4
- An in-range update of nodemon is breaking the build 🚨 HOT 5
- Quoted printable decoding is not correct in a few cases HOT 4
- HELP WANTED HOT 3
- Maximum call stack size exceeded - mail with file more than 100ko ... HOT 1
- "text-encoding" missing from "dependencies"
- Content is undefined if the email contains an attachment HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emailjs-mime-parser.