feat: add logging for catalina detection when configuring applemail

This commit is contained in:
James Houlahan
2021-01-27 10:08:33 +01:00
parent e2a30d1ac6
commit 9747145a3c

View File

@ -509,6 +509,10 @@ func (s *FrontendQt) configureAppleMail(iAccount, iAddress int) {
s.settings.SetBool(settings.SMTPSSLKey, true) s.settings.SetBool(settings.SMTPSSLKey, true)
log.Warn("Detected Catalina or newer with bad SMTP SSL settings, now using SSL, bridge needs to restart") log.Warn("Detected Catalina or newer with bad SMTP SSL settings, now using SSL, bridge needs to restart")
doRestart = true doRestart = true
} else if smtpSSL {
log.Debug("Bridge is already using SMTP SSL, no need to restart")
} else {
log.Debug("OS is pre-catalina (or not darwin at all), no need to change to SMTP SSL")
} }
for _, autoConf := range autoconfig.Available() { for _, autoConf := range autoconfig.Available() {