Comments (10)
Could you, please, share an example of such message?
from letterparser.
It has some sensitive info. Can I send it over mail?
from letterparser.
Got it! Thanks. Will work on the issue tomorrow.
from letterparser.
ok cool. Thanks a ton.
from letterparser.
Since headers are failed to being passed sometimes, this could be a good strategy if the existing logic ends in an error. If a header name is found on a specific line and the header value condition check fails, search the immediate next line for a value and capture that as the header value, otherwise throw any error.
from letterparser.
Patch published with version 0.0.4.
from letterparser.
Tried 0.0.4 version. Getting the same error still. It fails to parse the below lines.
Date: Fri, 30 Oct 2020 19:28:52 +0000
Message-ID:
DM5PR03MB32105C813B31150ED43297499B150@DM5PR03MB3210.namprd03.prod.outlook.com
References:
01000175757e79fd-1e262982-ff5a-4ace-b0c6-267c0d2a12cf-000000@email.amazonses.com
In-Reply-To:
01000175757e79fd-1e262982-ff5a-4ace-b0c6-267c0d2a12cf-000000@email.amazonses.com
from letterparser.
I can see that there is a space before the three keys on the new line as well.
from letterparser.
The raw email you've sent me parses just fine on 0.0.4. (Saved it to file, read using readFileSync and parsed using letterparser.parse()).
from letterparser.
Still failing with the below error. "err":{"message":"Unexpected space at the beginning of line 51","name":"Error","stack":"Error: Unexpected space at the beginning of line 51\n at parseHeaders (/root/workspace/example-api/node_modules/letterparser/lib/parser.js:95:23)\n at Object.parseBody (/root/workspace/example-api/node_modules/letterparser/lib/parser.js:135:21)\n at parse (/root/workspace/example-api/node_modules/letterparser/lib/index.js:32:30)\n
from letterparser.
Related Issues (16)
- Handling of Multipart message fails HOT 2
- Unable to parse emails from yahoo mail HOT 2
- Broken links HOT 2
- AMP for Email support HOT 4
- Can letterparser be used on the frontend? HOT 2
- Base-64 parsing error HOT 4
- Multipart type lacking boundary at line 1 HOT 3
- ECMA module HOT 1
- Using letterparser with nextjs ends with SyntaxError: Cannot use import statement outside a module HOT 2
- German Umlauts (Ä, Ö, Ü) in attachments filenames not parsed correctly HOT 3
- Content-Type "name" attribute not recognized HOT 2
- Quoted-Printable not being handled in Header by LetterparserMail HOT 4
- MultiPart message not parsing HOT 3
- Comma in names breaks parsing RFC5322 entries HOT 2
- Error when parsing strange Content-Type header HOT 2
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 letterparser.