@wtfalch/email 0.15.0 → 0.15.1
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
CHANGED
|
@@ -22,6 +22,10 @@ anybody's messages.
|
|
|
22
22
|
The post office holds the analogy: one is the letters, one is what's inside a
|
|
23
23
|
particular kind of envelope, the other is the pigeonholes.
|
|
24
24
|
|
|
25
|
+
## Status
|
|
26
|
+
|
|
27
|
+
Published: yes, v0.15.1, 2026-09-28.
|
|
28
|
+
|
|
25
29
|
---
|
|
26
30
|
|
|
27
31
|
## @wtfalch/email/mailbox
|
|
@@ -576,9 +580,9 @@ calling Cloudflare itself.
|
|
|
576
580
|
```ts
|
|
577
581
|
import { applyOrgMail, parkOrgMail } from '@wtfalch/email/postmaster';
|
|
578
582
|
|
|
579
|
-
const options = { apex: '
|
|
583
|
+
const options = { apex: 'oikos.host', mailHost: 'mail.oikos.host' };
|
|
580
584
|
|
|
581
|
-
// Level 1: no domain of its own, so it lives at acme.
|
|
585
|
+
// Level 1: no domain of its own, so it lives at acme.oikos.host and must be hosted.
|
|
582
586
|
await applyOrgMail(client, { slug: 'acme', mode: 'hosted' }, options);
|
|
583
587
|
|
|
584
588
|
// A domain of its own, kept receiving through Google or Microsoft.
|
|
@@ -635,7 +639,7 @@ publishes.
|
|
|
635
639
|
|
|
636
640
|
**Level 1 is the slug on the shared apex, and freezes there.** An org with
|
|
637
641
|
no `domain` gets `${slug}.${apex}` (foundry#7: "Level 1 gets
|
|
638
|
-
`@acme.
|
|
642
|
+
`@acme.oikos.host`") and its `mode` must be `hosted` — there is nowhere
|
|
639
643
|
else for a level-1 org's mail to be `received` at. `applyOrgMail` and
|
|
640
644
|
`parkOrgMail` both refuse a slug or a domain that is not a lowercase DNS
|
|
641
645
|
label before making a request.
|
|
@@ -64,15 +64,15 @@ export interface OrgMailOrg {
|
|
|
64
64
|
readonly mode: OrgMailMode;
|
|
65
65
|
}
|
|
66
66
|
export interface OrgMailOptions {
|
|
67
|
-
/** The shared mail apex a level-1 org's domain is built under, e.g. `
|
|
67
|
+
/** The shared mail apex a level-1 org's domain is built under, e.g. `oikos.host`. */
|
|
68
68
|
readonly apex: string;
|
|
69
|
-
/** The MX target and TLS name every domain on this instance shares, e.g. `mail.
|
|
69
|
+
/** The MX target and TLS name every domain on this instance shares, e.g. `mail.oikos.host`. */
|
|
70
70
|
readonly mailHost: string;
|
|
71
71
|
}
|
|
72
72
|
/** One DNS record foundry must publish. `priority` is set only for `MX`. */
|
|
73
73
|
export interface DnsRecordSpec {
|
|
74
74
|
readonly type: 'MX' | 'TXT';
|
|
75
|
-
/** Fully-qualified, no trailing dot — e.g. `acme.
|
|
75
|
+
/** Fully-qualified, no trailing dot — e.g. `acme.oikos.host` or `selector1._domainkey.acme.oikos.host`. */
|
|
76
76
|
readonly name: string;
|
|
77
77
|
readonly value: string;
|
|
78
78
|
readonly priority?: number;
|
|
@@ -16,7 +16,7 @@ function assertDomain(value) {
|
|
|
16
16
|
/**
|
|
17
17
|
* The `Domain` name this org's mail lives on. Refuses before any request: an
|
|
18
18
|
* org with no domain of its own is level 1, and foundry#7's "Level 1 gets
|
|
19
|
-
* `@acme.
|
|
19
|
+
* `@acme.oikos.host`" fixes both what the name is and that it can only ever
|
|
20
20
|
* be `hosted` — a level-1 org has nowhere else for mail to be `received` at.
|
|
21
21
|
*/
|
|
22
22
|
function resolveDomain(org, options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wtfalch/email",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"description": "The wtfalch estate: reading a mailbox over JMAP, administering the Stalwart server it lives on, and iTIP scheduling over iMIP. Three entries with no code in common.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@types/node": "^22",
|
|
66
66
|
"@types/react": "^19",
|
|
67
67
|
"@types/react-dom": "^19",
|
|
68
|
-
"@wtfalch/design": "
|
|
68
|
+
"@wtfalch/design": "0.16.0",
|
|
69
69
|
"jsdom": "^30.0.1",
|
|
70
70
|
"react": "^19",
|
|
71
71
|
"react-dom": "^19",
|