build(deps): update module github.com/wneessen/go-mail to v0.3.9 (#5086)

pull/5087/head
James Elliott 2023-03-19 07:50:17 +11:00 committed by GitHub
parent ca4a36b176
commit 2a2f2dfee2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

2
go.mod
View File

@ -44,7 +44,7 @@ require (
github.com/stretchr/testify v1.8.2 github.com/stretchr/testify v1.8.2
github.com/trustelem/zxcvbn v1.0.1 github.com/trustelem/zxcvbn v1.0.1
github.com/valyala/fasthttp v1.45.0 github.com/valyala/fasthttp v1.45.0
github.com/wneessen/go-mail v0.3.8 github.com/wneessen/go-mail v0.3.9
golang.org/x/net v0.8.0 golang.org/x/net v0.8.0
golang.org/x/sync v0.1.0 golang.org/x/sync v0.1.0
golang.org/x/term v0.6.0 golang.org/x/term v0.6.0

2
go.sum
View File

@ -509,6 +509,8 @@ github.com/valyala/fasthttp v1.45.0 h1:zPkkzpIn8tdHZUrVa6PzYd0i5verqiPSkgTd3bSUc
github.com/valyala/fasthttp v1.45.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA= github.com/valyala/fasthttp v1.45.0/go.mod h1:k2zXd82h/7UZc3VOdJ2WaUqt1uZ/XpXAfE9i+HBC3lA=
github.com/wneessen/go-mail v0.3.8 h1:ja5D/o/RVwrtRIYFlrO7GmtcjDNeMakGQuwQRZYv0JM= github.com/wneessen/go-mail v0.3.8 h1:ja5D/o/RVwrtRIYFlrO7GmtcjDNeMakGQuwQRZYv0JM=
github.com/wneessen/go-mail v0.3.8/go.mod h1:m25lkU2GYQnlVr6tdwK533/UXxo57V0kLOjaFYmub0E= github.com/wneessen/go-mail v0.3.8/go.mod h1:m25lkU2GYQnlVr6tdwK533/UXxo57V0kLOjaFYmub0E=
github.com/wneessen/go-mail v0.3.9 h1:Q4DbCk3htT5DtDWKeMgNXCiHc4bBY/vv/XQPT6XDXzc=
github.com/wneessen/go-mail v0.3.9/go.mod h1:zxOlafWCP/r6FEhAaRgH4IC1vg2YXxO0Nar9u0IScZ8=
github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM=
github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=

View File

@ -2,11 +2,10 @@ package notification
import ( import (
"fmt" "fmt"
"net/smtp"
"strings" "strings"
"github.com/wneessen/go-mail" "github.com/wneessen/go-mail"
"github.com/wneessen/go-mail/auth" "github.com/wneessen/go-mail/smtp"
"github.com/authelia/authelia/v4/internal/configuration/schema" "github.com/authelia/authelia/v4/internal/configuration/schema"
"github.com/authelia/authelia/v4/internal/utils" "github.com/authelia/authelia/v4/internal/utils"
@ -46,7 +45,7 @@ func (a *OpportunisticSMTPAuth) Start(server *smtp.ServerInfo) (proto string, to
case mail.SMTPAuthPlain: case mail.SMTPAuthPlain:
a.sa = smtp.PlainAuth("", a.username, a.password, a.host) a.sa = smtp.PlainAuth("", a.username, a.password, a.host)
case mail.SMTPAuthLogin: case mail.SMTPAuthLogin:
a.sa = auth.LoginAuth(a.username, a.password, a.host) a.sa = smtp.LoginAuth(a.username, a.password, a.host)
case mail.SMTPAuthCramMD5: case mail.SMTPAuthCramMD5:
a.sa = smtp.CRAMMD5Auth(a.username, a.password) a.sa = smtp.CRAMMD5Auth(a.username, a.password)
} }
@ -61,7 +60,7 @@ func (a *OpportunisticSMTPAuth) Start(server *smtp.ServerInfo) (proto string, to
case mail.SMTPAuthPlain: case mail.SMTPAuthPlain:
a.sa = smtp.PlainAuth("", a.username, a.password, a.host) a.sa = smtp.PlainAuth("", a.username, a.password, a.host)
case mail.SMTPAuthLogin: case mail.SMTPAuthLogin:
a.sa = auth.LoginAuth(a.username, a.password, a.host) a.sa = smtp.LoginAuth(a.username, a.password, a.host)
case mail.SMTPAuthCramMD5: case mail.SMTPAuthCramMD5:
a.sa = smtp.CRAMMD5Auth(a.username, a.password) a.sa = smtp.CRAMMD5Auth(a.username, a.password)
} }