0020_nextcloud_mozilla_pre: auto-provision Thunderbird IMAP account at logon

Adds SERVERFQDN_IMAP and TB_MAIL_FULLNAME to setup_system.conf.dist.
On each logon the script checks if an IMAP account for DAVTOKEN_USER@TLDOMAIN
already exists in prefs.js; if not it writes the server, identity, and account
entries and registers it with accountmanager. Idempotent — skipped when the
account is already present.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Daniel unbrot Pätzold
2026-05-02 10:59:32 +02:00
parent 87ac49ce41
commit d95136459c
2 changed files with 86 additions and 0 deletions
+4
View File
@@ -77,6 +77,10 @@ if [ "$EUID" -ne 0 ]; then
#Thunderbird Profiles
export PROFILE_TB_SRC="mozilla_profiles/thunderbird"
export PROFILE_TB_DST="${DECRYPTEDDATADIR}/thunderbird"
# Mail account auto-provisioning for DAVTOKEN_USER@TLDOMAIN in Thunderbird
export SERVERFQDN_IMAP="imap.${TLDOMAIN}" # IMAP server hostname (e.g. imap.strato.de)
export TB_MAIL_FULLNAME="${USER}" # Display name written to the Thunderbird identity
fi
#Basic commons not needing change