From e4c55829d16878496131ab886fa439f091067c19 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 10 Mar 2018 22:43:47 +0100 Subject: [PATCH] Update go-smtp --- go.mod | 8 ++++---- smtp/smtp.go | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 82f5131..a84025e 100644 --- a/go.mod +++ b/go.mod @@ -8,13 +8,13 @@ require ( "github.com/emersion/go-imap-specialuse" v0.0.0-20161227184202-ba031ced6a62 "github.com/emersion/go-message" v0.9.1 "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-vcard" v0.0.0-20171002085919-e65e62c72276 "github.com/emersion/go-webdav" v0.0.0-20170914095157-f8d9f83cbc04 "github.com/howeyc/gopass" v0.0.0-20170109162249-bf9dde6d0d2c - "golang.org/x/crypto" v0.0.0-20180228161326-91a49db82a88 - "golang.org/x/net" v0.0.0-20180301190904-22ae77b79946 - "golang.org/x/sys" v0.0.0-20180302081741-dd2ff4accc09 + "golang.org/x/crypto" v0.0.0-20180308185624-c7dcf104e3a7 + "golang.org/x/net" v0.0.0-20180308154319-d0aafc73d5cd + "golang.org/x/sys" v0.0.0-20180308152046-7dca6fe1f437 "golang.org/x/text" v0.0.0-20171214130843-f21a4dfb5e38 ) diff --git a/smtp/smtp.go b/smtp/smtp.go index b97120b..ae68cfd 100644 --- a/smtp/smtp.go +++ b/smtp/smtp.go @@ -341,6 +341,10 @@ func (be *backend) Login(username, password string) (smtp.User, error) { return &user{c, u, privateKeys}, nil } +func (be *backend) AnonymousLogin() (smtp.User, error) { + return nil, smtp.ErrAuthRequired +} + func New(sessions *auth.Manager) smtp.Backend { return &backend{sessions} }