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
+16 -4
View File
@@ -478,10 +478,22 @@ has the `DB_*` variables, `.coreapp` says `needs=postgres`.
account and adds the `SMTP_*` settings.
7. `coreapp mail` after the app sent a message (Supermarket: a password
reset for `coreapp.test@<domain>`): "<time> from <name>@<domain>,
accepted", then "to coreapp.test@<domain>: deferred (... 451 4.3.0 ...
Temporary internal error ...)" (the test account has no mailbox), one
line per message even after retries. No mail in the last day: "has no
mail from <name>". In an app without "email": refused.
accepted", then "to coreapp.test@<domain>: sent", one line per message
even after retries. No mail in the last day: "has no mail from
<name>". In an app without "email": refused.
8. `coreapp inbox` (anywhere): the same reset is there, "From: Supermarket
<supermarket@<domain>>", its subject and text with the `/reset/...`
link. An HTML-only message shows as text, `Confirm
<https://...>` for a link, without its `<style>`; an encoded subject
(`=?utf-8?q?...`) is decoded. `--clear` says how many it removed, then
"inbox is empty". The test account's LDAP entry has
`PostfixBookMailAccount`, `extensibleObject`, `mailEnabled: TRUE` and
`homeDirectory: /home/coreapp.test` and no `uidNumber`; an entry made
before (without them) gets them on the next `coreapp signin` or
`coreapp inbox`, and mail deferred for it is then delivered. `coreapp
signin --remove-account` removes the entry and its maildir
(`/federated/apps/mail/data/var/mail/<domain>/coreapp.test`); `coreapp
inbox` makes both again. `coreapp signin` still signs in afterwards.
### With both