fix(deps): update module github.com/wneessen/go-mail to v0.4.1 #2114
No reviewers
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#2114
Loading…
Reference in New Issue
No description provided.
Delete Branch "renovate/github.com-wneessen-go-mail-0.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
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 BREAKINGCompare 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. TheLogger
interface and theStdlog
implementation were modified to accept this new type. This change is breaking custom implementations of theLogger
interface, but the new interface provides much more flexibility (#136/#141). Additionally we added support for JSON logging (#142) using thelog/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 aMsg
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:
andBCC:
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 returntrue
after successful delivery of aMsg
. 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()
andWithTLSPolicy
options in favour ofWithSSLPort(bool)
andWithTLSPortPolicy(TLSPolicy)
.WithSSLPort
tells theClient
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 forTLSMandatory
andTLSOpportunistic
.NoTLS
will allways use port 25. If the connection fails withTLSOpportunistic
, 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
fileFromReader
by @rami-dabain in https://github.com/wneessen/go-mail/pull/161New 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.
This PR has been generated by Renovate 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!
11fd49ff9f
toda15e410d8
da15e410d8
to507917dd19
507917dd19
toa2e2cf32cb