feat(GODT-2703): got rid of account details dialog with Apple Mail autoconf.

This commit is contained in:
Xavier Michelon
2023-06-21 10:21:19 +02:00
parent a2c2710760
commit 09eef64514
3 changed files with 10 additions and 3 deletions

View File

@ -70,9 +70,11 @@ func prepareMobileConfig(
password []byte,
) *mobileconfig.Config {
return &mobileconfig.Config{
DisplayName: username,
EmailAddress: addresses,
Identifier: "protonmail " + username + strconv.FormatInt(time.Now().Unix(), 10),
DisplayName: username,
EmailAddress: addresses,
AccountName: username,
AccountDescription: username,
Identifier: "protonmail " + username + strconv.FormatInt(time.Now().Unix(), 10),
IMAP: &mobileconfig.IMAP{
Hostname: hostname,
Port: imapPort,