feat: detect bad certificate error

This commit is contained in:
James Houlahan
2020-07-28 16:15:28 +02:00
committed by Jakub
parent 7baa4dc117
commit 2c910378ce
5 changed files with 27 additions and 2 deletions

View File

@ -57,6 +57,7 @@ func NewIMAPServer(debugClient, debugServer bool, port int, tls *tls.Config, ima
s.AllowInsecureAuth = true
s.ErrorLog = newServerErrorLogger("server-imap")
s.AutoLogout = 30 * time.Minute
s.UpgradeError = imapBackend.upgradeError
serverID := imapid.ID{
imapid.FieldName: "ProtonMail",