Give the test account a mailbox, read with coreapp inbox

Mail an app sends to coreapp.test@<domain> (resets, invitations,
notifications) is now delivered: the account gets mailEnabled and a
homeDirectory (from extensibleObject, so it takes no uidNumber Superpanel
would give a person), older accounts on their next use. coreapp inbox
shows the newest 10 messages with their text (HTML as text, with links'
addresses); --clear empties it; removing the account removes its mail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 20:47:02 -07:00
co-authored by Claude Opus 5.5
parent c60d99baba
commit c337ba2530
7 changed files with 190 additions and 19 deletions
+14 -8
View File
@@ -266,14 +266,19 @@ Most apps have SMTP settings; map these onto them. Mail to `SMTP_FROM`
isn't delivered anywhere (the account has no mailbox), so set a reply-to
if people should be able to answer. The account can't sign in to anything
else on the Core. `coreapp new --email` adds the need (there's no example
app for it). There's no inbox to check that a test message arrived: send
one the app's usual way (e.g. a password reset for `coreapp.test@<domain>`),
then `coreapp mail`: what the Core's mail server did with each message from
the app's account in the last day (accepted, then delivered, deferred or
bounced, with the reason). Mail to `coreapp.test@<domain>` is accepted and
then deferred ("451 ... Temporary internal error"), because the test
account has no mailbox; that's expected and shows the app's sending
works. Ask the user to confirm delivery to a real address.
app for it).
To test the app's mail, send to the Core's test account,
`coreapp.test@<domain>`, which has a mailbox: trigger the mail the app's
usual way (a password reset, an invitation or a notification for that
address; `coreapp signin` first if the app only knows people who signed
in), then `coreapp inbox` shows what arrived (sender, subject and text,
HTML as text with each link's address), so you can check it and follow
its link. `coreapp inbox --clear` empties it before a test. If nothing
arrives, `coreapp mail` shows what the Core's mail server did with each
message from the app's account in the last day (accepted, then delivered,
deferred or bounced, with the reason). Mail to other addresses leaves
the Core; ask the user to confirm delivery to a real one.
### Not available yet
@@ -437,6 +442,7 @@ isn't the admin: ask the user to sign in once in a browser as
|---|---|
| `coreapp status` | Its container, address, port, needs, URL, and the Core's PostgreSQL or MariaDB version if it needs one |
| `coreapp mail` | What the Core's mail server did with the mail it sent (apps with `email`) |
| `coreapp inbox [--clear]` | The mail the test account got: the newest 10, with their text (`--clear` empties it) |
| `coreapp logs` / `coreapp logs -f` | The app's own log |
| `coreapp signin [path]` | Signs in with the Core's test account and shows each step |
| `coreapp shell '<command>'` | Run one command in its container, e.g. `coreapp shell 'id; env; ls -l /data'` (without a command it opens an interactive shell, which needs a terminal) |