mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-17 16:07:18 +02:00
update go-email version
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ require (
|
||||
github.com/oapi-codegen/nullable v1.1.0
|
||||
github.com/pquerna/otp v1.4.0
|
||||
github.com/stretchr/testify v1.9.0
|
||||
github.com/wneessen/go-mail v0.7.1
|
||||
github.com/wneessen/go-mail v0.7.2
|
||||
github.com/yeqown/go-qrcode/v2 v2.2.4
|
||||
go.uber.org/zap v1.27.0
|
||||
golang.org/x/crypto v0.41.0
|
||||
|
||||
+2
-2
@@ -145,8 +145,8 @@ github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
|
||||
github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE=
|
||||
github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
|
||||
github.com/wneessen/go-mail v0.7.1 h1:rvy63sp14N06/kdGqCYwW8Na5gDCXjTQM1E7So4PuKk=
|
||||
github.com/wneessen/go-mail v0.7.1/go.mod h1:+TkW6QP3EVkgTEqHtVmnAE/1MRhmzb8Y9/W3pweuS+k=
|
||||
github.com/wneessen/go-mail v0.7.2 h1:xxPnhZ6IZLSgxShebmZ6DPKh1b6OJcoHfzy7UjOkzS8=
|
||||
github.com/wneessen/go-mail v0.7.2/go.mod h1:+TkW6QP3EVkgTEqHtVmnAE/1MRhmzb8Y9/W3pweuS+k=
|
||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
|
||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
|
||||
github.com/yeqown/go-qrcode/v2 v2.2.4 h1:cXdYlrhzHzVAnJHiwr/T6lAUmS9MtEStjEZBjArrvnc=
|
||||
|
||||
+1
-1
@@ -11,4 +11,4 @@ package mail
|
||||
|
||||
// VERSION indicates the current version of the package. It is also attached to the default user
|
||||
// agent string.
|
||||
const VERSION = "0.7.1"
|
||||
const VERSION = "0.7.2"
|
||||
|
||||
+8
-4
@@ -1496,9 +1496,9 @@ func (m *Msg) GetSender(useFullAddr bool) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
addr := from[0]
|
||||
addr := *from[0]
|
||||
if !useFullAddr {
|
||||
addr.Name = ""
|
||||
return mailAddressStringWithoutName(addr), nil
|
||||
}
|
||||
return addr.String(), nil
|
||||
}
|
||||
@@ -1524,8 +1524,7 @@ func (m *Msg) GetRecipients() ([]string, error) {
|
||||
continue
|
||||
}
|
||||
for _, r := range addresses {
|
||||
r.Name = ""
|
||||
rcpts = append(rcpts, r.String())
|
||||
rcpts = append(rcpts, mailAddressStringWithoutName(*r))
|
||||
}
|
||||
}
|
||||
if len(rcpts) <= 0 {
|
||||
@@ -3327,3 +3326,8 @@ func writeFuncFromBuffer(buffer *bytes.Buffer) func(io.Writer) (int64, error) {
|
||||
}
|
||||
return writeFunc
|
||||
}
|
||||
|
||||
func mailAddressStringWithoutName(addr mail.Address) string {
|
||||
addr.Name = ""
|
||||
return addr.String()
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -288,7 +288,7 @@ github.com/twitchyliquid64/golang-asm/unsafeheader
|
||||
# github.com/ugorji/go/codec v1.2.12
|
||||
## explicit; go 1.11
|
||||
github.com/ugorji/go/codec
|
||||
# github.com/wneessen/go-mail v0.7.1
|
||||
# github.com/wneessen/go-mail v0.7.2
|
||||
## explicit; go 1.24.0
|
||||
github.com/wneessen/go-mail
|
||||
github.com/wneessen/go-mail/internal/pkcs7
|
||||
|
||||
Reference in New Issue
Block a user