Skip to content

v0.6.2: Bugfix release

Latest
Compare
Choose a tag to compare
@wneessen wneessen released this 16 Feb 13:00
b909433

Welcome to go-mail v0.6.2! This release fixes some bugs and makes go-mail ready for Go 1.24.

Fix regression of custom SMTP authentication handling

PR #429 fixes a regression in the handling of custom smtp.Auth methods that was introduced with the v0.6.0 release. Basically, if a custom SMTP auth method was provided, it was simply ignored. Thanks to @james-d-elliott of the Authelia project for reporting this.

Fix possible nil pointer derefernece in SendWithSMTPClient

With commit 4641da4 we fixed a possible nil pointer dereference in the SendWithSMTPClient method. This would happen if a nil message would be provided to the method. This bug was reported using Github's private vulnerability reporting feature by @younes199511. Thanks for the report!

Header count logic improvements

PR #421 fixed an issue in the header count logic that is used for S/MIME signing. If a header was broken into mutliple lines due to its lenght, the count logic was giving false results, resulting into false content for the S/MIME signature. Thanks to @theexiile1305 for reporting the issue and helping to debug the issue!

Go 1.24 readiness

The PRs #431 and #433 make go-mail and its CI ready for Go 1.24.

What's Changed

  • Refactor header count logic for accurate line tracking by @wneessen in #421
  • chore: improve tests for multipart messages by @wneessen in #422
  • Add tests for handling nil messages in email client by @wneessen in #427
  • Fix regression of custom smtp.Auth not working by @wneessen in #429
  • Skip tests for broken rand.Reader on Go 1.24+. by @wneessen in #433
  • chore: update CI to Go 1.24 by @wneessen in #431
  • Update version to 0.6.2 and fix typo in documentation by @wneessen in #434

CI/CD maintenance changes

Full Changelog: v0.6.1...v0.6.2