From 4c3416d0783539667f1dc688d19884cd1da5db2c Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sun, 15 Jan 2023 16:11:15 +0100 Subject: [PATCH 1/4] Bump version to 0.3.9 --- doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index 78a08cb..c55ac47 100644 --- a/doc.go +++ b/doc.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT @@ -6,4 +6,4 @@ package mail // VERSION is used in the default user agent string -const VERSION = "0.3.8" +const VERSION = "0.3.9" From 23a4261e60add21796991ad0a2ca2775f0312dbd Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sun, 15 Jan 2023 16:12:33 +0100 Subject: [PATCH 2/4] Added note about forked smtp package Additionally added new feature references and updated contributors section --- README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c162b11..db86b1a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ @@ -25,6 +25,9 @@ Parts of this library (especially some parts of [msgwriter.go](msgwriter.go)) ha [go-mail/mail](https://github.com/go-mail/mail) respectively [go-gomail/gomail](https://github.com/go-gomail/gomail) which both seems to not be maintained anymore. +The smtp package of go-mail is forked from the original Go stdlib's `net/smtp` and then extended by the go-mail +team. + ## Features Some of the features of this library: @@ -48,6 +51,8 @@ Some of the features of this library: * [X] Message object satisfies `io.WriteTo` and `io.Reader` interfaces * [X] Support for Go's `html/template` and `text/template` (as message body, alternative part or attachment/emebed) * [X] Output to file support which allows storing mail messages as e. g. `.eml` files to disk to open them in a MUA +* [X] Debug logging of SMTP traffic +* [X] Custom error types for delivery errors go-mail works like a programatic email client and provides lots of methods and functionalities you would consider standard in a MUA. @@ -72,8 +77,13 @@ found in a seperate repository: [go-mail-middlware](https://github.com/wneessen/ We provide example code in both our GoDocs as well as on our official Website (see [Documentation](#documentation)). For a quick start into go-mail check out our [Getting started](https://go-mail.dev/getting-started/introduction/) guide. -## Contributors -Thanks to the following people for contributing to the go-mail project: +## Authors/Contributors +go-mail was initially authored and developed by [Winni Neessen](https://github.com/wneessen/). + +Big thanks to the following people, for contributing to the go-mail project (either in form of code or by +reviewing code, writing documenation or helping to translate the website): * [Dhia Gharsallaoui](https://github.com/dhia-gharsallaoui) * [inliquid](https://github.com/inliquid) +* [iwittkau](https://github.com/iwittkau) +* [James Elliott](https://github.com/james-d-elliott) * [Maria Letta](https://github.com/MariaLetta) (designed the go-mail logo) From f4b836143cfc2e49d2e4e284f725a11cd18c884d Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sun, 15 Jan 2023 16:13:10 +0100 Subject: [PATCH 3/4] Updated Security reporting information --- SECURITY.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index eb08a78..39c427f 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,5 +1,5 @@ @@ -8,5 +8,11 @@ SPDX-License-Identifier: CC0-1.0 ## Reporting a Vulnerability -Please send a mail to wn+gomail@neessen.net when you found a security issue in go-mail, even when you are not 100% certain -that it is actually a security issue. Typically, you will receive an answer within a day or even within a few hours. +To report (possible) security issues in go-mail, please either send a mail to +[security@go-mail.dev](mailto:security@go-mail.dev) or use Github's +[private reporting feature](https://github.com/wneessen/go-mail/security/advisories/new). +Reports are always welcome. Even if you are not 100% certain that a specific issue you found +counts as a security issue, we'd love to hear the details, so we can figure out together if +the issue in question needds to be addressed. + +Typically, you will receive an answer within a day or even within a few hours. From 3922d3f195a8a37987445119406c49699f0a4e02 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Sun, 15 Jan 2023 16:14:19 +0100 Subject: [PATCH 4/4] Switched copyright header from me to "The go-mail Authors" --- CONTRIBUTING.md | 2 +- LICENSE | 2 +- auth.go | 2 +- b64linebreaker.go | 2 +- b64linebreaker_test.go | 2 +- client.go | 2 +- client_119.go | 2 +- client_120.go | 2 +- client_test.go | 2 +- codecov.yml | 2 +- doc_test.go | 2 +- encoding.go | 2 +- encoding_test.go | 2 +- file.go | 2 +- file_test.go | 2 +- go.mod | 2 +- header.go | 2 +- header_test.go | 2 +- msg.go | 2 +- msg_nowin_test.go | 2 +- msg_test.go | 2 +- msg_totmpfile.go | 2 +- msg_totmpfile_116.go | 2 +- msgwriter.go | 2 +- msgwriter_test.go | 2 +- part.go | 2 +- part_test.go | 2 +- random.go | 2 +- random_test.go | 2 +- reader.go | 2 +- reader_test.go | 2 +- senderror.go | 2 +- senderror_test.go | 2 +- smtp/auth_login.go | 2 +- smtp/smtp.go | 7 ------- sonar-project.properties | 2 +- tls.go | 2 +- tls_test.go | 2 +- 38 files changed, 37 insertions(+), 44 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1611a3a..959134a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,5 @@ diff --git a/LICENSE b/LICENSE index d29fdcc..4c01f61 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Winni Neessen +Copyright (c) 2022-2023 The go-mail Authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/auth.go b/auth.go index 51abdb9..ad3b698 100644 --- a/auth.go +++ b/auth.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/b64linebreaker.go b/b64linebreaker.go index f471fe5..5174984 100644 --- a/b64linebreaker.go +++ b/b64linebreaker.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/b64linebreaker_test.go b/b64linebreaker_test.go index f2b3891..e95245b 100644 --- a/b64linebreaker_test.go +++ b/b64linebreaker_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/client.go b/client.go index 3f66b72..4fa2d26 100644 --- a/client.go +++ b/client.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/client_119.go b/client_119.go index 7fb25df..06053e3 100644 --- a/client_119.go +++ b/client_119.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/client_120.go b/client_120.go index 33be7e3..9732f94 100644 --- a/client_120.go +++ b/client_120.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/client_test.go b/client_test.go index 88000dc..858019a 100644 --- a/client_test.go +++ b/client_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/codecov.yml b/codecov.yml index 99b8451..a7460c1 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2022 Winni Neessen +# SPDX-FileCopyrightText: 2022-2023 The go-mail Authors # # SPDX-License-Identifier: CC0-1.0 diff --git a/doc_test.go b/doc_test.go index dbf3604..4fd2970 100644 --- a/doc_test.go +++ b/doc_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/encoding.go b/encoding.go index f10a903..db58c8a 100644 --- a/encoding.go +++ b/encoding.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/encoding_test.go b/encoding_test.go index 5529f91..71624f3 100644 --- a/encoding_test.go +++ b/encoding_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/file.go b/file.go index 7a558e2..9a7f95f 100644 --- a/file.go +++ b/file.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/file_test.go b/file_test.go index 6c5ca6b..5490aad 100644 --- a/file_test.go +++ b/file_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/go.mod b/go.mod index c0569d0..b155b9b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/header.go b/header.go index dfd2f32..5b7a25c 100644 --- a/header.go +++ b/header.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/header_test.go b/header_test.go index 091a1a9..aea2f4c 100644 --- a/header_test.go +++ b/header_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/msg.go b/msg.go index 6fe7f5a..430feb2 100644 --- a/msg.go +++ b/msg.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/msg_nowin_test.go b/msg_nowin_test.go index d5dca3d..820be24 100644 --- a/msg_nowin_test.go +++ b/msg_nowin_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/msg_test.go b/msg_test.go index 4c06ebc..e7f6cbd 100644 --- a/msg_test.go +++ b/msg_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/msg_totmpfile.go b/msg_totmpfile.go index 25d5829..44c427d 100644 --- a/msg_totmpfile.go +++ b/msg_totmpfile.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/msg_totmpfile_116.go b/msg_totmpfile_116.go index c911dc6..4611106 100644 --- a/msg_totmpfile_116.go +++ b/msg_totmpfile_116.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/msgwriter.go b/msgwriter.go index 6da1c35..d53be21 100644 --- a/msgwriter.go +++ b/msgwriter.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/msgwriter_test.go b/msgwriter_test.go index bd1aa4e..857b876 100644 --- a/msgwriter_test.go +++ b/msgwriter_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/part.go b/part.go index e25eeeb..ebd0163 100644 --- a/part.go +++ b/part.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/part_test.go b/part_test.go index eeaa611..55bc82d 100644 --- a/part_test.go +++ b/part_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/random.go b/random.go index 5c23972..27305db 100644 --- a/random.go +++ b/random.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/random_test.go b/random_test.go index 095e321..51e3ba6 100644 --- a/random_test.go +++ b/random_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/reader.go b/reader.go index dfc5113..eeb66ac 100644 --- a/reader.go +++ b/reader.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/reader_test.go b/reader_test.go index 64e2193..3f30735 100644 --- a/reader_test.go +++ b/reader_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/senderror.go b/senderror.go index da9402a..b3a8a7b 100644 --- a/senderror.go +++ b/senderror.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/senderror_test.go b/senderror_test.go index b72a14e..e83df00 100644 --- a/senderror_test.go +++ b/senderror_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/smtp/auth_login.go b/smtp/auth_login.go index 6811c71..9a0958e 100644 --- a/smtp/auth_login.go +++ b/smtp/auth_login.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors +// SPDX-FileCopyrightText: Copyright (c) 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/smtp/smtp.go b/smtp/smtp.go index 21f2bc3..38408a7 100644 --- a/smtp/smtp.go +++ b/smtp/smtp.go @@ -17,13 +17,6 @@ // 8BITMIME RFC 1652 // AUTH RFC 2554 // STARTTLS RFC 3207 -// -// Additional extensions may be handled by clients. -// -// The smtp package is frozen and is not accepting new features. -// Some external packages provide more functionality. See: -// -// https://godoc.org/?q=smtp package smtp import ( diff --git a/sonar-project.properties b/sonar-project.properties index 3cbb495..e228a11 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2022 Winni Neessen +# SPDX-FileCopyrightText: 2022-2023 The go-mail Authors # # SPDX-License-Identifier: CC0-1.0 diff --git a/tls.go b/tls.go index eafc2b5..e8ccc67 100644 --- a/tls.go +++ b/tls.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT diff --git a/tls_test.go b/tls_test.go index a902e63..ef208e7 100644 --- a/tls_test.go +++ b/tls_test.go @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2022 Winni Neessen +// SPDX-FileCopyrightText: 2022-2023 The go-mail Authors // // SPDX-License-Identifier: MIT