fix(deps): update module github.com/wneessen/go-mail to v0.3.7 #1348
No reviewers
Labels
No Label
dependencies
duplicate
help wanted
invalid
kind/bug
kind/feature
needs reproduction
question
security
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/vikunja#1348
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.3.6
->v0.3.7
⚠ Dependency Lookup Warnings ⚠
Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.
Release Notes
wneessen/go-mail
v0.3.7
Compare Source
This release introduces the
SendError
type which satisfies the error interface and provides a better way to identify delivery errors. A newsendError
field has been added to theMsg
as well, to also allow per-message error handling in bulk mailings.We've also added different
SendErrReason
that indicate the different things that can go wrong during mail delivery. These reasons can be checked for, for eachMsg
using theerrors.Is
methods. Alternatively, theerrors.As
method can be used to unwrap theSendError
to get access to it's methods. TheSendError
provides aIsTemp
method that returns true if the delivery error is of temporary nature.This is useful for delivery retries. For example the following code could be used to decide whether the error is retryable or not:
If the
Send
method runs into more than one error during delivery, these errors are accumulated and returned with the reasonErrAmbiguous
, since it's not possible to exactly say what caused the error. For this it comes handy, that the*Msg
now provides per-message send errors. The*Msg
now hasHasSendError()
,SendErrorIsTemp()
andSendError()
. WhileHasSendError()
simply returns a bool in case a*Msg
failed during delivery andSendErrorIsTemp()
returns true if it's a temporary error, theSendError()
will return the fullSendError
error of the corresponding*Msg
.The
Error()
method ofSendError
will return a detailed error string based on the accumulated errors that were collected during the delivery.Thanks to @imirkin and @iwittkau for providing valueable feedback and performing code review on the PR.
What's Changed
Full Changelog: https://github.com/wneessen/go-mail/compare/v0.3.6...v0.3.7
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.