| 1 |
Change Log |
| 2 |
========== |
| 3 |
|
| 4 |
All notable changes to this project will be documented in this file. |
| 5 |
This project adheres to [Semantic Versioning](http://semver.org/). |
| 6 |
|
| 7 |
|
| 8 |
## [Unreleased] |
| 9 |
|
| 10 |
|
| 11 |
## [0.9.3] - 2022-01-29 |
| 12 |
|
| 13 |
### Added |
| 14 |
- Support for more charsets (#230) |
| 15 |
- fixMangledMediaType now removes extra content-type parts (#225) |
| 16 |
|
| 17 |
### Fixed |
| 18 |
- Fix new lines (ie in filenames) in mediatype.Parse (#224) |
| 19 |
- Fix crash in QPCleaner, when line is too long and buffer is almost full (#220) |
| 20 |
|
| 21 |
|
| 22 |
## [0.9.2] - 2021-08-21 |
| 23 |
|
| 24 |
### Added |
| 25 |
- Auto-quote header parameters containing whitespace (#209) |
| 26 |
|
| 27 |
### Fixed |
| 28 |
- Remove leading header parameter whitespace (#208) |
| 29 |
|
| 30 |
### Changed |
| 31 |
- Move ParseMediaType to its own `mediatype` package to reduce the length of |
| 32 |
header.go. Introduce wrapper func to preserve public API. |
| 33 |
|
| 34 |
|
| 35 |
## [0.9.1] - 2021-07-31 |
| 36 |
|
| 37 |
### Added |
| 38 |
- `mime-dump` now prints a stack trace when parsing fails for easier debugging |
| 39 |
|
| 40 |
### Fixed |
| 41 |
- Handle trailing whitespace in `;` separated headers (#195, thanks demofrager) |
| 42 |
- Ignore empty sections in `;` separated headers (#199, thanks pavelbazika) |
| 43 |
- Handle very long lines inside mime boundaries (#200, thanks pavelbazika) |
| 44 |
- Handle 8-bit characters in unencoded media type params (#201, thanks |
| 45 |
pavelbazika) |
| 46 |
- Handle tiny destination buffers and long lines in quoted-printable blocks |
| 47 |
(#203) |
| 48 |
|
| 49 |
### Changed |
| 50 |
- Encoder now uses QP or b64 encoding for 8-bit filenames instead of flattening |
| 51 |
to ASCII (#197, thanks Alexfilus) |
| 52 |
|
| 53 |
|
| 54 |
## [0.9.0] - 2021-05-01 |
| 55 |
|
| 56 |
### Added |
| 57 |
- `SendWithReversePath` method to builder, allows specifying a reverse-path |
| 58 |
that differs from the from address (#179, thanks cgroschupp) |
| 59 |
- A `Sender` interface that allows our users to provide their own mail |
| 60 |
sending routines, or mock them in tests. #182 |
| 61 |
|
| 62 |
### Fixed |
| 63 |
- Reject empty addresses during builder validation (#187, thanks jawr) |
| 64 |
- Allow unset subject line during builder validation (#191, thanks psanford) |
| 65 |
|
| 66 |
### Changed |
| 67 |
- Updated dependencies |
| 68 |
|
| 69 |
|
| 70 |
## [0.8.4] - 2020-12-18 |
| 71 |
|
| 72 |
### Fixed |
| 73 |
- Attachment file names containing semicolons are no longer truncated (#174) |
| 74 |
|
| 75 |
|
| 76 |
## [0.8.3] - 2020-11-05 |
| 77 |
|
| 78 |
### Fixed |
| 79 |
- Reverted folded header parsing changes due to compatibility problems (#172) |
| 80 |
- Improved performance and memory consumption of boundary reader (#170, thanks |
| 81 |
bttrfl and dcormier) |
| 82 |
|
| 83 |
|
| 84 |
## [0.8.2] - 2020-10-10 |
| 85 |
|
| 86 |
### Fixed |
| 87 |
- Use DFS instead of BFS to locate HTML body to match behavior of popular |
| 88 |
email clients (#157, thanks huaconghub) |
| 89 |
- Improvements to media type parsing |
| 90 |
- Improvements to unescaping quotes with higher codepoints (#165, thanks |
| 91 |
pavelbazika) |
| 92 |
- Improvements to folded header parsing (#166, thanks pacellig) |
| 93 |
|
| 94 |
|
| 95 |
## [0.8.1] - 2020-05-25 |
| 96 |
|
| 97 |
### Fixed |
| 98 |
- Handle incorrectly indented headers (#149, thanks requaos) |
| 99 |
- Handle trailing separator characters in header (#154, thanks joekamibeppu) |
| 100 |
|
| 101 |
### Changed |
| 102 |
- enmime no longer uses git-flow, and will now accept PRs against master |
| 103 |
|
| 104 |
|
| 105 |
## [0.8.0] - 2020-02-23 |
| 106 |
|
| 107 |
### Added |
| 108 |
- Inject a `application/octet-stream` as default content type when none is |
| 109 |
present (#140, thanks requaos) |
| 110 |
- Add support for content-type params to part & encoding (#148, thanks |
| 111 |
pzeinlinger) |
| 112 |
- UTF-7 support (#17) |
| 113 |
|
| 114 |
### Fixed |
| 115 |
- Handle missing parameter values in the middle of the media parameter list |
| 116 |
(#139, thanks requaos) |
| 117 |
- Fix boundaryReader to respect length instead of capacity (#145, thanks |
| 118 |
dcormier) |
| 119 |
- Handle very empty mime parts (#144, thanks dcormier) |
| 120 |
|
| 121 |
|
| 122 |
## [0.7.0] - 2019-11-24 |
| 123 |
|
| 124 |
### Added |
| 125 |
- Public DecodeHeaders function for getting header data without processing the |
| 126 |
body parts (thanks requaos.) |
| 127 |
- Test coverage over 90% (thanks requaos!) |
| 128 |
|
| 129 |
### Changed |
| 130 |
- Update dependencies |
| 131 |
|
| 132 |
### Fixed |
| 133 |
- Do not attempt to detect character set for short messages (#131, thanks |
| 134 |
requaos.) |
| 135 |
- Possible slice out of bounds error (#134, thanks requaos.) |
| 136 |
- Tests on Go 1.13 no longer fail due to textproto change (#137, thanks to |
| 137 |
requaos.) |
| 138 |
|
| 139 |
|
| 140 |
## [0.6.0] - 2019-08-10 |
| 141 |
|
| 142 |
### Added |
| 143 |
- Make ParseMediaType public. |
| 144 |
|
| 145 |
### Fixed |
| 146 |
- Improve quoted display name handling (#112, thanks to requaos.) |
| 147 |
- Refactor MIME part boundary detection (thanks to requaos.) |
| 148 |
- Several improvements to MIME attribute decoding (thanks to requaos.) |
| 149 |
- Detect text/plain attachments properly (thanks to davrux.) |
| 150 |
|
| 151 |
|
| 152 |
## [0.5.0] - 2018-12-15 |
| 153 |
|
| 154 |
### Added |
| 155 |
- Use github.com/pkg/errors to decorate errors with stack traces (thanks to |
| 156 |
dcomier.) |
| 157 |
- Several improvements to Content-Type header decoding (thanks to dcormier.) |
| 158 |
- File modification date to encode/decode (thanks to dann7387.) |
| 159 |
- Handle non-delimited address lists (thanks to requaos.) |
| 160 |
- RFC-2047 attribute name deocding (thanks to requaos.) |
| 161 |
|
| 162 |
### Fixed |
| 163 |
- Only detect charset on `text/*` parts (thanks to dcormier.) |
| 164 |
- Stop adding extra newline during encode (thanks to dann7387.) |
| 165 |
- Math bug in selecting QP or base64 encoding (thanks to dann7387.) |
| 166 |
|
| 167 |
## [0.4.0] - 2018-11-21 |
| 168 |
|
| 169 |
### Added |
| 170 |
- Override declared character set if another is detected with high confidence |
| 171 |
(thanks to nerdlich.) |
| 172 |
- Handle unquoted specials in media type parameters (thanks to requaos.) |
| 173 |
- Handle barren Content-Type headers (thanks to dcormier.) |
| 174 |
- Better handle malformed media type parameters (thanks to dcormier.) |
| 175 |
|
| 176 |
### Changed |
| 177 |
- Use iso-8859-1 character map when implicitly declared (thanks to requaos.) |
| 178 |
- Treat "inline" disposition as message content, not attachment unless it is |
| 179 |
accompanied by parameters (e.g. a filename, thanks to requaos.) |
| 180 |
|
| 181 |
## [0.3.0] - 2018-11-01 |
| 182 |
|
| 183 |
### Added |
| 184 |
- CLI utils now output inlines and other parts in addition to attachments. |
| 185 |
- Clone() method to Envelope and Part (thanks to nerdlich.) |
| 186 |
- GetHeaderKeys() method to Envelope (thanks to allenluce.) |
| 187 |
- GetHeaderValues() plus a suite of setters for Envelope (thanks to nerdlich.) |
| 188 |
|
| 189 |
### Changed |
| 190 |
- Use value instead of pointer receivers and return types on MailBuilder |
| 191 |
methods. Cleaner API, but may break some users. |
| 192 |
- `enmime.Error` now conforms to the Go error interface, its `String()` method |
| 193 |
is now deprecated. |
| 194 |
- `NewPart()` constructor no longer takes a parent parameter. |
| 195 |
- Part.Errors now holds pointers, matching Envelope.Errors. |
| 196 |
|
| 197 |
### Fixed |
| 198 |
- Content is now populated for binary-only mails root part (thank to ostcar.) |
| 199 |
|
| 200 |
### Removed |
| 201 |
- Part no longer implements `io.Reader`, content is stored as a byte slice in |
| 202 |
`Part.Content` instead. |
| 203 |
|
| 204 |
|
| 205 |
## [0.2.1] - 2018-10-20 |
| 206 |
|
| 207 |
### Added |
| 208 |
- Go modules support for reproducible builds. |
| 209 |
|
| 210 |
|
| 211 |
## [0.2.0] - 2018-02-24 |
| 212 |
|
| 213 |
### Changed |
| 214 |
- Encoded filenames now have unicode accents stripped instead of escaped, making |
| 215 |
them more readable. |
| 216 |
- Part.ContentID |
| 217 |
- is now properly encoded into the headers when using the builder. |
| 218 |
- is now populated from headers when decoding messages. |
| 219 |
- Update go doc, add info about headers and errors. |
| 220 |
|
| 221 |
### Fixed |
| 222 |
- Part.Read() and Part.Utf8Reader, they are deprecated but should continue to |
| 223 |
function until 1.0.0. |
| 224 |
|
| 225 |
|
| 226 |
## 0.1.0 - 2018-02-10 |
| 227 |
|
| 228 |
### Added |
| 229 |
- Initial implementation of MIME encoding, using `enmime.MailBuilder` |
| 230 |
|
| 231 |
|
| 232 |
[Unreleased]: https://github.com/jhillyerd/enmime/compare/v0.9.3...master |
| 233 |
[0.9.3]: https://github.com/jhillyerd/enmime/compare/v0.9.2...v0.9.3 |
| 234 |
[0.9.2]: https://github.com/jhillyerd/enmime/compare/v0.9.1...v0.9.2 |
| 235 |
[0.9.1]: https://github.com/jhillyerd/enmime/compare/v0.9.0...v0.9.1 |
| 236 |
[0.9.0]: https://github.com/jhillyerd/enmime/compare/v0.8.4...v0.9.0 |
| 237 |
[0.8.4]: https://github.com/jhillyerd/enmime/compare/v0.8.3...v0.8.4 |
| 238 |
[0.8.3]: https://github.com/jhillyerd/enmime/compare/v0.8.2...v0.8.3 |
| 239 |
[0.8.2]: https://github.com/jhillyerd/enmime/compare/v0.8.1...v0.8.2 |
| 240 |
[0.8.1]: https://github.com/jhillyerd/enmime/compare/v0.8.0...v0.8.1 |
| 241 |
[0.8.0]: https://github.com/jhillyerd/enmime/compare/v0.7.0...v0.8.0 |
| 242 |
[0.7.0]: https://github.com/jhillyerd/enmime/compare/v0.6.0...v0.7.0 |
| 243 |
[0.6.0]: https://github.com/jhillyerd/enmime/compare/v0.5.0...v0.6.0 |
| 244 |
[0.5.0]: https://github.com/jhillyerd/enmime/compare/v0.4.0...v0.5.0 |
| 245 |
[0.4.0]: https://github.com/jhillyerd/enmime/compare/v0.3.0...v0.4.0 |
| 246 |
[0.3.0]: https://github.com/jhillyerd/enmime/compare/v0.2.1...v0.3.0 |
| 247 |
[0.2.1]: https://github.com/jhillyerd/enmime/compare/v0.2.0...v0.2.1 |
| 248 |
[0.2.0]: https://github.com/jhillyerd/enmime/compare/v0.1.0...v0.2.0 |
| 249 |
|
| 250 |
|
| 251 |
## Release Checklist |
| 252 |
|
| 253 |
1. Update CHANGELOG.md: |
| 254 |
- Ensure *Unreleased* section is up to date |
| 255 |
- Rename *Unreleased* section to release name and date |
| 256 |
- Add new GitHub `/compare` link |
| 257 |
2. Run tests |
| 258 |
3. Tag release with `v` prefix |
| 259 |
|
| 260 |
See http://keep change log.com/ for additional instructions on how to update this |
| 261 |
file. |