Please Thunderbird somewhat

This commit is contained in:
Neil Alexander
2021-07-08 22:58:36 +01:00
parent f0f07218c6
commit 814d9bc073
2 changed files with 12 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ func main() {
imapServer := server.New(imapBackend)
imapServer.Addr = *imapaddr
imapServer.AllowInsecureAuth = true
imapServer.Debug = os.Stdout
imapServer.EnableAuth(sasl.Login, func(conn server.Conn) sasl.Server {
return sasl.NewLoginServer(func(username, password string) error {
_, err := imapBackend.Login(nil, username, password)