fix(deps): update module github.com/wneessen/go-mail to v0.4.1 #2114

Open
renovate wants to merge 1 commits from renovate/github.com-wneessen-go-mail-0.x into main
Member

This PR contains the following updates:

Package Type Update Change
github.com/wneessen/go-mail require patch v0.4.0 -> v0.4.1

Release Notes

wneessen/go-mail (github.com/wneessen/go-mail)

v0.4.1: : Improved logging, attachment removing, delivery status indicaton and more POTENTIALLY BREAKING

Compare Source

This release of go-mail brings some new features as well as some code clean up and stability improvments.

Improved logging interface (Potentially Breaking Change)

The debug logging system in go-mail has been refactored. A new custom log type Log was introduced, that includes the message direction, format and arguments. The Logger interface and the Stdlog implementation were modified to accept this new type. This change is breaking custom implementations of the Logger interface, but the new interface provides much more flexibility (#​136/#​141). Additionally we added support for JSON logging (#​142) using the log/slog package that has been added to the stdlib in Go 1.21.

This change is breaking custom logger implementations

Removal of attachments/embeds

#​147 adds support for removing all attachments/embeds/parts from a Msg. This allows to re-use a Msg and allows for replacing message parts.

The following methods can be used:

  • Msg.UnsetAllAttachments()
  • Msg.UnsetAllEmbeds()
  • Msg.UnsetAllParts()

Thanks to @​leahoop for their first PR!

Reading of multiple addresses from a single comma-separated string

#​155/#​152 add support for three new methods that allow to read multiple recipient addresses for the TO:, CC: and BCC: fields from a single comma-separated string.

The following methods have been added:

  • Msg.ToFromString(string)
  • Msg.CcFromString(string)
  • Msg.BccFromString(string)

Thanks to @​suntong for requesting this useful feature!

Delivery status indication for messages

With #​167 we added support for delivery status indication of messages. This is especially helpful for bulk mailings to identify if a message was actually delivered or not. A helper method IsDelivered has been added that will return true after successful delivery of a Msg. Thanks to @​mitar for requesting this useful feature!

Making use of best practice default ports and fallback ports

When using SSL or STARTTLS, so far the default port was always 25, which is against best practices as described in RFC8314, section 3.3. With #​170 we've deprecated the WithSSL() and WithTLSPolicy options in favour of WithSSLPort(bool) and WithTLSPortPolicy(TLSPolicy).

  • WithSSLPort tells the Client to use a SSL/TLS connection and automatically sets the port to 465.
  • WithTLSPortPolicy tells the client to use the provided TLSPolicy and sets the correct port automatically. Port 587 is used for TLSMandatory and TLSOpportunistic. NoTLS will allways use port 25. If the connection fails with TLSOpportunistic, a plaintext connection is attempted on port 25 as a fallback.

Thanks to @​muhlemmer for raising the request and providing the first part of the PR.

AUTH LOGIN extension draft

We've added support for the auth login extension draft. This effectively is a draft that expired and was deprecated in favor of the AUTH PLAIN SASL extension (#​163).

Thanks to @​james-d-elliott for the PR!

Code cleanup and stability

The codebase has been reviewed and a couple of potential nil pointer dereferences have been identified and fixed.
Additionally, a potential panic has been fixed in fileFromReader (#​161) - thanks to @​rami-dabain for their first PR!

What's Changed

New Contributors

Full Changelog: https://github.com/wneessen/go-mail/compare/v0.4.0...v0.4.1


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/wneessen/go-mail](https://github.com/wneessen/go-mail) | require | patch | `v0.4.0` -> `v0.4.1` | --- ### Release Notes <details> <summary>wneessen/go-mail (github.com/wneessen/go-mail)</summary> ### [`v0.4.1`](https://github.com/wneessen/go-mail/releases/tag/v0.4.1): : Improved logging, attachment removing, delivery status indicaton and more *POTENTIALLY BREAKING* [Compare Source](https://github.com/wneessen/go-mail/compare/v0.4.0...v0.4.1) This release of go-mail brings some new features as well as some code clean up and stability improvments. #### Improved logging interface (Potentially Breaking Change) The debug logging system in go-mail has been refactored. A new custom log type `Log` was introduced, that includes the message direction, format and arguments. The `Logger` interface and the `Stdlog` implementation were modified to accept this new type. This change is breaking custom implementations of the `Logger` interface, but the new interface provides much more flexibility ([#&#8203;136](https://github.com/wneessen/go-mail/issues/136)/[#&#8203;141](https://github.com/wneessen/go-mail/issues/141)). Additionally we added support for JSON logging ([#&#8203;142](https://github.com/wneessen/go-mail/issues/142)) using the `log/slog` package that has been added to the stdlib in Go 1.21. **This change is breaking custom logger implementations** #### Removal of attachments/embeds [#&#8203;147](https://github.com/wneessen/go-mail/issues/147) adds support for removing all attachments/embeds/parts from a `Msg`. This allows to re-use a `Msg` and allows for replacing message parts. The following methods can be used: - `Msg.UnsetAllAttachments()` - `Msg.UnsetAllEmbeds()` - `Msg.UnsetAllParts()` Thanks to [@&#8203;leahoop](https://github.com/leahoop) for their first PR! #### Reading of multiple addresses from a single comma-separated string [#&#8203;155](https://github.com/wneessen/go-mail/issues/155)/[#&#8203;152](https://github.com/wneessen/go-mail/issues/152) add support for three new methods that allow to read multiple recipient addresses for the `TO:`, `CC:` and `BCC:` fields from a single comma-separated string. The following methods have been added: - `Msg.ToFromString(string)` - `Msg.CcFromString(string)` - `Msg.BccFromString(string)` Thanks to [@&#8203;suntong](https://github.com/suntong) for requesting this useful feature! #### Delivery status indication for messages With [#&#8203;167](https://github.com/wneessen/go-mail/issues/167) we added support for delivery status indication of messages. This is especially helpful for bulk mailings to identify if a message was actually delivered or not. A helper method `IsDelivered` has been added that will return `true` after successful delivery of a `Msg`. Thanks to [@&#8203;mitar](https://github.com/mitar) for requesting this useful feature! #### Making use of best practice default ports and fallback ports When using SSL or STARTTLS, so far the default port was always 25, which is against best practices as described in [RFC8314, section 3.3](https://datatracker.ietf.org/doc/html/rfc8314#section-3.3). With [#&#8203;170](https://github.com/wneessen/go-mail/issues/170) we've deprecated the `WithSSL()` and `WithTLSPolicy` options in favour of `WithSSLPort(bool)` and `WithTLSPortPolicy(TLSPolicy)`. - `WithSSLPort` tells the `Client` to use a SSL/TLS connection and automatically sets the port to 465. - `WithTLSPortPolicy` tells the client to use the provided TLSPolicy and sets the correct port automatically. Port 587 is used for `TLSMandatory` and `TLSOpportunistic`. `NoTLS` will allways use port 25. If the connection fails with `TLSOpportunistic`, a plaintext connection is attempted on port 25 as a fallback. Thanks to [@&#8203;muhlemmer](https://github.com/muhlemmer) for raising the request and providing the first part of the PR. #### AUTH LOGIN extension draft We've added support for the auth login extension draft. This effectively is a draft that expired and was deprecated in favor of the AUTH PLAIN SASL extension ([#&#8203;163](https://github.com/wneessen/go-mail/issues/163)). Thanks to [@&#8203;james-d-elliott](https://github.com/james-d-elliott) for the PR! #### Code cleanup and stability The codebase has been reviewed and a couple of potential nil pointer dereferences have been identified and fixed. Additionally, a potential panic has been fixed in `fileFromReader` ([#&#8203;161](https://github.com/wneessen/go-mail/issues/161)) - thanks to [@&#8203;rami-dabain](https://github.com/rami-dabain) for their first PR! #### What's Changed - Replace hardcoded '2' in Output with const CallDepth by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/137 - Fix nil pointer dereference in msgwriter due to missing error handling by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/139 - Update Go version to 1.21 in GitHub workflows by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/140 - Refactor logging for clearer messaging direction by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/141 - [#&#8203;142](https://github.com/wneessen/go-mail/issues/142) Add structured JSON logger and associated tests by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/143 - [#&#8203;147](https://github.com/wneessen/go-mail/issues/147) add remove attachments and embeds methods by [@&#8203;leahoop](https://github.com/leahoop) in https://github.com/wneessen/go-mail/pull/148 - Feature/147 add method to remove any attachmentembed by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/149 - Add new methods and tests for handling email addresses by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/155 - Eleminate potential null pointer exceptions by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/157 - Added return error to `fileFromReader` by [@&#8203;rami-dabain](https://github.com/rami-dabain) in https://github.com/wneessen/go-mail/pull/161 - feat(smtp): auth login extension draft support by [@&#8203;james-d-elliott](https://github.com/james-d-elliott) in https://github.com/wneessen/go-mail/pull/163 - Upstream sync / refine function comments to include return type GoDoc links by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/165 - Add delivery status indication for messages by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/167 - Update FreeBSD version in .cirrus.yml by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/169 - Add default ports and fallback behavior for SSL and TLS by [@&#8203;wneessen](https://github.com/wneessen) and [@&#8203;muhlemmer](https://github.com/muhlemmer) in https://github.com/wneessen/go-mail/pull/170 - Add Charset support for message parts by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/172 - Add "X-Auto-Response-Suppress" header and update SetBulk method by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/173 - Update Go version in GitHub workflow files by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/174 #### New Contributors - [@&#8203;leahoop](https://github.com/leahoop) made their first contribution in https://github.com/wneessen/go-mail/pull/148 - [@&#8203;rami-dabain](https://github.com/rami-dabain) made their first contribution in https://github.com/wneessen/go-mail/pull/161 - [@&#8203;muhlemmer](https://github.com/muhlemmer) made their first contribution in https://github.com/wneessen/go-mail/pull/170 **Full Changelog**: https://github.com/wneessen/go-mail/compare/v0.4.0...v0.4.1 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzUuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3NS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
renovate added the
dependencies
label 2024-02-14 17:05:35 +00:00
renovate added 1 commit 2024-02-14 17:05:37 +00:00
Member

Hi renovate!

Thank you for creating a PR!

I've deployed the changes of this PR on a preview environment under this URL: https://2114-renovate-github-com-wneessen-go---vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.

Have a nice day!

Beep boop, I'm a bot.

Hi renovate! Thank you for creating a PR! I've deployed the changes of this PR on a preview environment under this URL: https://2114-renovate-github-com-wneessen-go---vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/. Have a nice day! > Beep boop, I'm a bot.
renovate force-pushed renovate/github.com-wneessen-go-mail-0.x from 11fd49ff9f to da15e410d8 2024-02-17 13:06:37 +00:00 Compare
renovate force-pushed renovate/github.com-wneessen-go-mail-0.x from da15e410d8 to 507917dd19 2024-03-10 13:06:20 +00:00 Compare
renovate force-pushed renovate/github.com-wneessen-go-mail-0.x from 507917dd19 to a2e2cf32cb 2024-04-08 10:05:58 +00:00 Compare
Some checks failed
continuous-integration/drone/pr Build is failing
Required
Details
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#2114
No description provided.