Other: Fix apple mail config

This commit is contained in:
James Houlahan
2022-10-26 17:31:09 +02:00
parent 7b7a2068ea
commit 04d9fa8f9e
2 changed files with 4 additions and 3 deletions

View File

@ -78,13 +78,14 @@ func prepareMobileConfig(
Port: imapPort, Port: imapPort,
TLS: imapSSL, TLS: imapSSL,
Username: username, Username: username,
Password: password, Password: string(password),
}, },
SMTP: &mobileconfig.SMTP{ SMTP: &mobileconfig.SMTP{
Hostname: hostname, Hostname: hostname,
Port: smtpPort, Port: smtpPort,
TLS: smtpSSL, TLS: smtpSSL,
Username: username, Username: username,
Password: string(password),
}, },
} }
} }

View File

@ -46,7 +46,7 @@ type IMAP struct {
TLS bool TLS bool
Username string Username string
Password []byte Password string
} }
type SMTP struct { type SMTP struct {
@ -57,7 +57,7 @@ type SMTP struct {
// Leave Username blank to do not use SMTP authentication. // Leave Username blank to do not use SMTP authentication.
Username string Username string
// Leave Password blank to use IMAP credentials. // Leave Password blank to use IMAP credentials.
Password []byte Password string
} }
func (c *Config) WriteOut(w io.Writer) error { func (c *Config) WriteOut(w io.Writer) error {