0.10.0
Pre-release
Pre-release
go-message v0.10.0
This release contains breaking changes.
The header API has been completely re-written to ensure header fields don't get
re-ordered and are modified in a way that doesn't break DKIM signatures. See
the documentation for the new API [1].
You now need to explicitly import "github.com/emersion/go-message/charset" to
opt-in to automatic charset decoding.
In the mail package, Text parts have been renamed to Inline.
[1]: https://godoc.org/github.com/emersion/go-message/textproto#Header
NamedKitten (1):
Fix tests.
Simon Ser (4):
charset: set message.CharsetReader on init, add docs
readme: update CI badge to sr.ht
mail: add CreateSingleInlineWriter
Update golang.org/x/text
emersion (23):
Add new Header API
Add readHeader
More docs for new Header API
Add basic writeHeader
go fmt
Preserve whitespace when writing headers
Add example for new header API
Improve TestHeaderWithWhitespace
Move wire header API into subpackage
Use new header API
textproto: add example
Move formatHeaderField to textproto
Remove Header.{Set,}ContentDescription, add Header.{Set,}Text
readme: add more features
ci: switch to sr.ht
Add go.mod
Make Writer fail on invalid encoding/charset
Document Writer
mail: rename Text to Inline
textproto: fix Header functions not having ptr receiver
mail: remove New{Attachment,Inline}Header
mail: add missing inline.go
mail: remove dependency on charset package