Update go-smtp

This commit is contained in:
emersion 2018-03-10 22:43:47 +01:00
parent a2280ce8eb
commit e4c55829d1
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
2 changed files with 8 additions and 4 deletions

8
go.mod
View File

@ -8,13 +8,13 @@ require (
"github.com/emersion/go-imap-specialuse" v0.0.0-20161227184202-ba031ced6a62 "github.com/emersion/go-imap-specialuse" v0.0.0-20161227184202-ba031ced6a62
"github.com/emersion/go-message" v0.9.1 "github.com/emersion/go-message" v0.9.1
"github.com/emersion/go-sasl" v0.0.0-20161116183048-7e096a0a6197 "github.com/emersion/go-sasl" v0.0.0-20161116183048-7e096a0a6197
"github.com/emersion/go-smtp" v0.0.0-20180204110156-a63104657743 "github.com/emersion/go-smtp" v0.0.0-20180309082851-d7437cd112af
"github.com/emersion/go-textwrapper" v0.0.0-20160606182133-d0e65e56babe "github.com/emersion/go-textwrapper" v0.0.0-20160606182133-d0e65e56babe
"github.com/emersion/go-vcard" v0.0.0-20171002085919-e65e62c72276 "github.com/emersion/go-vcard" v0.0.0-20171002085919-e65e62c72276
"github.com/emersion/go-webdav" v0.0.0-20170914095157-f8d9f83cbc04 "github.com/emersion/go-webdav" v0.0.0-20170914095157-f8d9f83cbc04
"github.com/howeyc/gopass" v0.0.0-20170109162249-bf9dde6d0d2c "github.com/howeyc/gopass" v0.0.0-20170109162249-bf9dde6d0d2c
"golang.org/x/crypto" v0.0.0-20180228161326-91a49db82a88 "golang.org/x/crypto" v0.0.0-20180308185624-c7dcf104e3a7
"golang.org/x/net" v0.0.0-20180301190904-22ae77b79946 "golang.org/x/net" v0.0.0-20180308154319-d0aafc73d5cd
"golang.org/x/sys" v0.0.0-20180302081741-dd2ff4accc09 "golang.org/x/sys" v0.0.0-20180308152046-7dca6fe1f437
"golang.org/x/text" v0.0.0-20171214130843-f21a4dfb5e38 "golang.org/x/text" v0.0.0-20171214130843-f21a4dfb5e38
) )

View File

@ -341,6 +341,10 @@ func (be *backend) Login(username, password string) (smtp.User, error) {
return &user{c, u, privateKeys}, nil return &user{c, u, privateKeys}, nil
} }
func (be *backend) AnonymousLogin() (smtp.User, error) {
return nil, smtp.ErrAuthRequired
}
func New(sessions *auth.Manager) smtp.Backend { func New(sessions *auth.Manager) smtp.Backend {
return &backend{sessions} return &backend{sessions}
} }