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

Merged
konrad merged 2 commits from renovate/github.com-wneessen-go-mail-0.x into main 2022-11-21 11:56:24 +00:00
Member

This PR contains the following updates:

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

⚠ 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.5

Compare Source

This release fixes a bug in the msgWriter error handling as well as introduces the new GetAddrHeader method. Thanks to @​oschwald for both, the error report and the feature request.

  • The error handling in the msgWriter.writeBody method was not working properly. We basically overwrote the mw.err with nil if the function that followed after a failed write attempt was successful again.
  • SetHeader and SetHeaderPreformatted have been deprecated in favour of SetGenHeader and SetGenHeaderPreformatted As pointed out in #​80 the naming was pretty confusing, given that we already have SetAddrHeader.
    With the new naming convention it should be more clear to the user, which method to use for which action. For compatibility reasons the old methods have been kept for now but in reality they are just aliases to the new methods.
  • GetAddrHeader and GetAddrHeaderString have been introduced As requested in #​80 analogous to GetGenHeader we also need a similar method for the address headers. Since address headers are *mail.Address pointer, we've also added a *String method that will extract the address string and return a string slice instead.
  • Additionally we're introducing methods for the actual address headers: GetTo, GetFrom, GetCc and GetBcc (with a *String counterpart as well). This way the user has full flexibility. Either they use the more "low-level" GetAddrHeader method or the higher level methods for the corresponding address type

NOTE; We encourage users who use the SetHeader method in their code to switch to SetGenHeader instead.

What's Changed

Full Changelog: https://github.com/wneessen/go-mail/compare/v0.3.4...v0.3.5


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, click this checkbox.

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.3.4` -> `v0.3.5` | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>wneessen/go-mail</summary> ### [`v0.3.5`](https://github.com/wneessen/go-mail/releases/tag/v0.3.5) [Compare Source](https://github.com/wneessen/go-mail/compare/v0.3.4...v0.3.5) This release fixes a bug in the `msgWriter` error handling as well as introduces the new `GetAddrHeader` method. Thanks to [@&#8203;oschwald](https://github.com/oschwald) for both, the error report and the feature request. - The error handling in the `msgWriter.writeBody` method was not working properly. We basically overwrote the `mw.err` with `nil` if the function that followed after a failed write attempt was successful again. - `SetHeader` and `SetHeaderPreformatted` have been deprecated in favour of `SetGenHeader` and `SetGenHeaderPreformatted` As pointed out in [#&#8203;80](https://github.com/wneessen/go-mail/issues/80) the naming was pretty confusing, given that we already have `SetAddrHeader`. With the new naming convention it should be more clear to the user, which method to use for which action. For compatibility reasons the old methods have been kept for now but in reality they are just aliases to the new methods. - `GetAddrHeader` and `GetAddrHeaderString` have been introduced As requested in [#&#8203;80](https://github.com/wneessen/go-mail/issues/80) analogous to `GetGenHeader` we also need a similar method for the address headers. Since address headers are `*mail.Address` pointer, we've also added a `*String` method that will extract the address string and return a string slice instead. - Additionally we're introducing methods for the actual address headers: `GetTo`, `GetFrom`, `GetCc` and `GetBcc` (with a `*String` counterpart as well). This way the user has full flexibility. Either they use the more "low-level" `GetAddrHeader` method or the higher level methods for the corresponding address type **NOTE;** We encourage users who use the `SetHeader` method in their code to switch to `SetGenHeader` instead. #### What's Changed - [#&#8203;81](https://github.com/wneessen/go-mail/issues/81): Fix error handling in body writer by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/82 - [#&#8203;80](https://github.com/wneessen/go-mail/issues/80): GetAddrHeader and SetGenHeader by [@&#8203;wneessen](https://github.com/wneessen) in https://github.com/wneessen/go-mail/pull/83 **Full Changelog**: https://github.com/wneessen/go-mail/compare/v0.3.4...v0.3.5 </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, click this checkbox. --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yNDAuMiIsInVwZGF0ZWRJblZlciI6IjMyLjI0MC4yIn0=-->
renovate added the
dependencies
label 2022-11-19 11:01:36 +00:00
renovate added 1 commit 2022-11-19 11:01:37 +00:00
konrad added 1 commit 2022-11-21 11:42:41 +00:00
continuous-integration/drone/pr Build is passing Details
e538114045
fix: lint
konrad scheduled this pull request to auto merge when all checks succeed 2022-11-21 11:42:54 +00:00
konrad merged commit f47faf577a into main 2022-11-21 11:56:24 +00:00
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#1325
No description provided.