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:
+19
@@ -31,6 +31,8 @@
|
||||
# get a code for the app's callback from Authelia
|
||||
# coreapp signin --remove-account
|
||||
# remove the test account from the Core
|
||||
# coreapp inbox [--clear] the mail the test account (coreapp.test@<domain>)
|
||||
# got, newest 10 with their text; --clear empties it
|
||||
# coreapp remove uninstall it from the Core (asks first)
|
||||
# coreapp list the apps on the Core installed this way
|
||||
# coreapp install [--downgrade] <https://host/owner/repo>[@tag]
|
||||
@@ -430,6 +432,22 @@ cmd_mail() {
|
||||
core "$REMOTE_INSTALLER/coreapps mail $NAME"
|
||||
}
|
||||
|
||||
# The test account's mailbox (made with the account): what apps sent it
|
||||
cmd_inbox() {
|
||||
local password
|
||||
case "${1:-}" in
|
||||
"") ;;
|
||||
--clear) ;;
|
||||
*) die "coreapp inbox [--clear]" ;;
|
||||
esac
|
||||
init_core; sync_installer
|
||||
# Makes the account if it isn't there yet (or gives an older one its
|
||||
# mailbox); its password is new and kept nowhere, as for signin
|
||||
password="$(python3 -c 'import secrets; print(secrets.token_urlsafe(24))')"
|
||||
printf '%s' "$password" | core "$REMOTE_INSTALLER/coreapps test-account" > /dev/null || exit 1
|
||||
core "$REMOTE_INSTALLER/coreapps test-inbox ${1:-}"
|
||||
}
|
||||
|
||||
cmd_core() {
|
||||
init_core
|
||||
sync_installer
|
||||
@@ -643,6 +661,7 @@ case "$cmd" in
|
||||
signin) cmd_signin "$@" ;;
|
||||
core) cmd_core ;;
|
||||
mail) cmd_mail ;;
|
||||
inbox) cmd_inbox "$@" ;;
|
||||
remove | rm) cmd_remove ;;
|
||||
list | ls) cmd_list ;;
|
||||
publish) cmd_publish "$@" ;;
|
||||
|
||||
Reference in New Issue
Block a user