@chronicle.app/email 0.4.0 → 0.5.0

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +18 -6
package/README.md CHANGED
@@ -65,7 +65,7 @@ The extractor parses the following email components:
65
65
 
66
66
  Messages are built by [@chronicle.app/email-core](../../core/email/README.md), the same way the Gmail plugin builds them:
67
67
 
68
- - Each email is a `MessageAction` by the sender whose object is a `Message`.
68
+ - Each email is a `MessageAction` by the sender whose `result` is a `Message`, and the action is keyed by it.
69
69
  The message's `name` is the subject, its `recipient`s are the To, Cc and Bcc
70
70
  addresses, and it is `inReplyTo` the message its In-Reply-To names.
71
71
  - Its `body` is what the sender wrote, as plain text or Markdown: no HTML,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chronicle.app/email",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "files": [
@@ -23,9 +23,9 @@
23
23
  "type": "module",
24
24
  "description": "Chronicle plugin for email data from mbox format files",
25
25
  "devDependencies": {
26
- "@chronicle.app/etl": "0.4.0",
27
- "@chronicle.app/schema": "0.4.0",
28
- "@chronicle.app/tsconfig": "0.4.0",
26
+ "@chronicle.app/etl": "0.5.0",
27
+ "@chronicle.app/schema": "0.5.0",
28
+ "@chronicle.app/tsconfig": "0.5.0",
29
29
  "@types/node": "^22.10.1",
30
30
  "typescript": "^5.7.2"
31
31
  },
@@ -40,7 +40,7 @@
40
40
  "registry": "https://registry.npmjs.org/"
41
41
  },
42
42
  "dependencies": {
43
- "@chronicle.app/email-core": "0.4.0",
43
+ "@chronicle.app/email-core": "0.5.0",
44
44
  "zod": "^3.24.1"
45
45
  },
46
46
  "peerDependencies": {
@@ -66,7 +66,19 @@
66
66
  "recordTypes": [
67
67
  "emails"
68
68
  ],
69
- "default": true
69
+ "default": true,
70
+ "files": [
71
+ {
72
+ "names": [
73
+ "*.mbox"
74
+ ],
75
+ "match": [
76
+ {
77
+ "head": "^\\s*From "
78
+ }
79
+ ]
80
+ }
81
+ ]
70
82
  }
71
83
  }
72
84
  }