mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-10 12:46:46 +00:00
Other: Fix apple mail config
This commit is contained in:
@ -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),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user