email-origin-chain 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# email-origin-chain
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/email-origin-chain)
|
|
4
|
+
[](https://www.npmjs.com/package/email-origin-chain)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
|
|
3
7
|
**Uncover the full audit trail of your email threads.** Recursively deep-dives into forwards and replies to reconstruct the entire conversation history. Combines MIME traversal with multi-language text detection for a perfect message chain—giving you instant access to the original sender's details and the true source message.
|
|
4
8
|
|
|
5
9
|
## Architecture & Refactor
|
|
@@ -26,7 +30,7 @@ Detailed documentation can be found in the [docs/architecture/](docs/architectur
|
|
|
26
30
|
## Installation
|
|
27
31
|
|
|
28
32
|
```bash
|
|
29
|
-
npm install
|
|
33
|
+
npm install email-origin-chain
|
|
30
34
|
```
|
|
31
35
|
|
|
32
36
|
### CLI Utilities
|
|
@@ -36,7 +40,7 @@ npx tsx bin/extract.ts tests/fixtures/complex-forward.eml
|
|
|
36
40
|
```
|
|
37
41
|
|
|
38
42
|
```typescript
|
|
39
|
-
import { extractDeepestHybrid } from 'email-
|
|
43
|
+
import { extractDeepestHybrid } from 'email-origin-chain';
|
|
40
44
|
|
|
41
45
|
// Process a full EML with hybrid strategy
|
|
42
46
|
const result = await extractDeepestHybrid(rawEmailString);
|
|
@@ -406,7 +410,7 @@ All built-in detectors use the `Cleaner` utility to ensure consistent text norma
|
|
|
406
410
|
- **Boundary Detection**: Uses the "Double Newline" rule found in professional parsers.
|
|
407
411
|
|
|
408
412
|
```typescript
|
|
409
|
-
import { Cleaner } from 'email-
|
|
413
|
+
import { Cleaner } from 'email-origin-chain/utils/cleaner';
|
|
410
414
|
|
|
411
415
|
const normalized = Cleaner.normalize(rawText);
|
|
412
416
|
const bodyOnly = Cleaner.extractBody(lines, lastHeaderIndex);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "email-origin-chain",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Uncover the full audit trail of your email threads. Recursively reconstructs the entire conversation history with instant access to the original sender and true source message.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|