QUIC transport

This commit is contained in:
Neil Alexander
2023-11-03 14:03:41 +00:00
parent 50182bf0a8
commit f11efc2c8d
5 changed files with 160 additions and 261 deletions

View File

@@ -31,7 +31,7 @@ func NewIMAPServer(backend *Backend, addr string, insecure bool) (*IMAPServer, *
s.server.AllowInsecureAuth = insecure
//s.server.Debug = os.Stdout
s.server.Enable(idle.NewExtension())
s.server.Enable(notify)
//s.server.Enable(notify)
s.server.EnableAuth(sasl.Login, func(conn server.Conn) sasl.Server {
return sasl.NewLoginServer(func(username, password string) error {
_, err := s.backend.Login(nil, username, password)