inboxer 0.4.6 → 0.4.7
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/package.json +1 -1
- package/skills/inboxer/SKILL.md +9 -6
- package/src/ui/static/style.css +2 -1
- package/src/ui/views.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inboxer",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"description": "A self-hosted mail layer for agents: persists every inbound and outbound email, exposes an MCP server, and ships a minimal UI to review drafts.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
package/skills/inboxer/SKILL.md
CHANGED
|
@@ -55,12 +55,15 @@ For roster-server, return `inboxer.handler` from the `SiteFactory` and register
|
|
|
55
55
|
|
|
56
56
|
Keep two domains apart: the app runs on its own host, e.g. `inboxer.example.com` (`A`/`AAAA` + HTTPS, the `publicUrl`), while the addresses live on the mail domain, e.g. `support@example.com` (`MX` to Resend + SPF, DKIM, DMARC).
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
0. Sign up at Resend, add the domain in *Domains* and enable receiving. Resend lists the four records below with the account's exact values; copy them from there, since keys and regions vary. The values here are examples.
|
|
59
|
+
1. TXT — DKIM: `resend._domainkey` → the public key Resend shows (`p=MIGfMA0GCSq…`).
|
|
60
|
+
2. MX and TXT — `send` (bounces and SPF): MX `send` → `feedback-smtp.us-east-1.amazonses.com`, priority `10`; TXT `send` → `v=spf1 include:amazonses.com ~all`.
|
|
61
|
+
3. TXT — DMARC: `_dmarc` → `v=DMARC1; p=none; rua=mailto:dmarc@example.com`.
|
|
62
|
+
4. MX — receiving: `@` → `inbound-smtp.us-east-1.amazonaws.com`, priority `10`. This moves the whole domain's mail to Resend; unknown addresses land in `catchall`. To keep the root elsewhere, put the addresses and this MX on a subdomain. Wait until Resend shows the domain verified.
|
|
63
|
+
5. Create a full-access API key (Inboxer reads emails, not only sends) → `provider.apiKey`.
|
|
64
|
+
6. Deploy Inboxer over HTTPS at `publicUrl`.
|
|
65
|
+
7. Create a webhook at `<publicUrl>/webhooks/resend` for `email.received`, `email.sent`, `email.delivered`, `email.bounced`, `email.failed`, `email.suppressed` → its signing secret is `provider.webhookSecret`.
|
|
66
|
+
8. Restart and send a test email from outside. A webhook `401` means a wrong signing secret.
|
|
64
67
|
|
|
65
68
|
Missed webhooks are recovered by the periodic sync.
|
|
66
69
|
|
package/src/ui/static/style.css
CHANGED
|
@@ -38,7 +38,7 @@ h1 { font-size: 2rem; line-height: 1.1; letter-spacing: -0.04em; font-weight: 70
|
|
|
38
38
|
.sidebar { display: none; }
|
|
39
39
|
body.app { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
|
|
40
40
|
body.app.full { padding-bottom: 0; }
|
|
41
|
-
.page { max-width: 760px;
|
|
41
|
+
.page { max-width: 760px; padding: 24px 16px 32px; }
|
|
42
42
|
|
|
43
43
|
.tabbar {
|
|
44
44
|
position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
|
|
@@ -396,6 +396,7 @@ textarea {
|
|
|
396
396
|
.setting label { font-weight: 500; }
|
|
397
397
|
.row.device:hover { background: none; }
|
|
398
398
|
.row.device .avatar { color: var(--muted); }
|
|
399
|
+
.row.device form { display: contents; }
|
|
399
400
|
.row.device .danger { align-self: center; padding: 0; height: auto; border: none; background: none; }
|
|
400
401
|
.row.device .danger:hover { text-decoration: underline; }
|
|
401
402
|
.setting .danger, .setting .danger:hover { padding: 0; height: auto; border: none; background: none; }
|
package/src/ui/views.ts
CHANGED
|
@@ -512,7 +512,9 @@ export function devicesPage(sessions: Session[], currentId: string): View {
|
|
|
512
512
|
<span class="row-by">${S.signedIn} ${formatDate(s.created_at)} · ${S.createdBy} ${s.created_by}</span>
|
|
513
513
|
</span>
|
|
514
514
|
</span>
|
|
515
|
-
${
|
|
515
|
+
${s.id === currentId
|
|
516
|
+
? h`<form method="post" action="/logout"><button class="danger">${S.logout}</button></form>`
|
|
517
|
+
: h`<button class="danger" hx-post="/devices/${s.id}/revoke" hx-target="#session-${s.id}" hx-swap="delete">${S.revoke}</button>`}
|
|
516
518
|
</div>`)) : h`<p class="empty">${S.devicesEmpty}</p>`}
|
|
517
519
|
</section>`;
|
|
518
520
|
}
|