mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-04-26 03:46:34 +03:00
QUIC transport
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user