forked from obel1x/fedora-OEMDRV
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user