| 1 |
0.49 2021-08-08 |
| 2 |
|
| 3 |
- Fixed handling of charsets in multi-section header attributes. Previously |
| 4 |
this would assume that the charset was present in every section, instead of |
| 5 |
just the first. Fixed by Vitaly Gimly. GH #10. PR #11. |
| 6 |
|
| 7 |
- Fixed handling of multi-section header attributes which encoded a UTF-8 (or |
| 8 |
other multi-byte charset) value with the value broken mid-byte between |
| 9 |
sections. Previously these would be end up in a corrupted form. Reported by |
| 10 |
Vitaly Gimly. GH #10. |
| 11 |
|
| 12 |
- Fixed parsing of MIME encoded words in a header when there was no space at |
| 13 |
the start of the value. Previously this would leave the first MIME encoded |
| 14 |
chunk as-is instead of decoding it. Fixed by Vitaly Gimly. GH #10. PR #11. |
| 15 |
|
| 16 |
|
| 17 |
0.48 2019-04-21 |
| 18 |
|
| 19 |
- Replaced File::Slurp::Tiny with File::Slurper. The former has been |
| 20 |
deprecated by its author for some time. Fixes GH #9. Reported by Greg |
| 21 |
Oschwald. |
| 22 |
|
| 23 |
|
| 24 |
0.47 2018-05-20 |
| 25 |
|
| 26 |
- Switched to using GitHub for issue tracking. |
| 27 |
|
| 28 |
|
| 29 |
0.46 2018-05-13 |
| 30 |
|
| 31 |
- Replaced all use of Email::Address with Email::Address::XS, as the former is |
| 32 |
deprecated. The latter is a drop-in replacement API-wise, except if you are |
| 33 |
checking `$address->isa('Email::Address')`. Reported by Greg Oschwald. GH |
| 34 |
#5. |
| 35 |
|
| 36 |
|
| 37 |
0.45 2017-12-09 |
| 38 |
|
| 39 |
- Fix tests that fail with Params::ValidationCompiler 0.26 and require that |
| 40 |
version. |
| 41 |
|
| 42 |
|
| 43 |
0.44 2016-12-05 |
| 44 |
|
| 45 |
- The changes to use Params::ValidationCompiler in 0.43 were not quite |
| 46 |
correct, and since Params::ValidationCompiler 0.20 started doing more |
| 47 |
validation of calls to validation_for(), this cause an exception. Reported |
| 48 |
by Todd Bruner. RT #119137. |
| 49 |
|
| 50 |
|
| 51 |
0.43 2016-11-13 |
| 52 |
|
| 53 |
- Replaced MooseX::Params::Validate with Params::ValidationCompiler. |
| 54 |
|
| 55 |
|
| 56 |
0.42 2016-07-04 |
| 57 |
|
| 58 |
- Require the latest version of DateTime::Format::Mail in order to avoid |
| 59 |
warnings from DateTime 1.32+ that will cause some tests to fail. Reported by |
| 60 |
Olaf Alders. RT #115868. |
| 61 |
|
| 62 |
|
| 63 |
0.41 2016-03-05 |
| 64 |
|
| 65 |
- Fixed header folding for headers that contain non-true values like |
| 66 |
'0'. Based on a patch for Email::Simple from |
| 67 |
pali. https://github.com/rjbs/Email-Simple/pull/11. |
| 68 |
|
| 69 |
|
| 70 |
0.40 2016-01-30 |
| 71 |
|
| 72 |
- Fixed the stringification of some headers with regards to encoding. The |
| 73 |
Received header should never be encoded (and thus should never contain |
| 74 |
non-ASCII). |
| 75 |
|
| 76 |
- Fixed headers which contain email addresses (To, From, CC) so that email |
| 77 |
addresses are properly encoded (I think). The phrase and comment portions of |
| 78 |
the address can contain encoded-words, but the address itself should never |
| 79 |
be encoded. Note that per RFC6531 addresses may contain UTF-8, but the MTA |
| 80 |
must support the SMTPUTF8 extension in order for the mail to be |
| 81 |
delivered. As of this release, SMTPUTF8 support does not appear to be very |
| 82 |
widespread, so I would strongly discourage the use of UTF-8 in email |
| 83 |
addresses! |
| 84 |
|
| 85 |
|
| 86 |
0.39 2015-08-04 |
| 87 |
|
| 88 |
- Changed Email::Abstract::Courriel's ->get_body() method to return the entire |
| 89 |
email as a string, making it equivalent to ->as_string(). This is confusing, |
| 90 |
but looking at the few instances of code in Email::Transport that call |
| 91 |
->get_body(), it seems like that's what this method is expected to |
| 92 |
do. Reported by Greg Oschwald. RT #106176. |
| 93 |
|
| 94 |
|
| 95 |
0.38 2015-08-04 |
| 96 |
|
| 97 |
- Somewhat screwy release now deleted from PAUSE. |
| 98 |
|
| 99 |
|
| 100 |
0.37 2015-02-26 |
| 101 |
|
| 102 |
- Fixed a test failure when MooseX::Params::Validate 0.21+ is |
| 103 |
installed. Reported by Slaven Rezic. RT #102382. |
| 104 |
|
| 105 |
|
| 106 |
0.36 2014-08-15 |
| 107 |
|
| 108 |
- Trying to build an email with a header that started with a space caused the |
| 109 |
header value to be dropped entirely from the generated email. Patch by Greg |
| 110 |
Oschwald. PR #2. |
| 111 |
|
| 112 |
|
| 113 |
0.35 2014-05-12 |
| 114 |
|
| 115 |
- Replaced all uses of File::Slurp with File::Slurp::Tiny. See RT #95479 for |
| 116 |
the initial bug report and discussion on why File::Slurp should not be used. |
| 117 |
|
| 118 |
|
| 119 |
0.34 2014-05-02 |
| 120 |
|
| 121 |
- More test fixes - relax the date parsing more. |
| 122 |
|
| 123 |
|
| 124 |
0.33 2014-04-19 |
| 125 |
|
| 126 |
- Fixed tests so they pass with the most recent DateTime::Format::Mail (0.400) |
| 127 |
as well as older versions. |
| 128 |
|
| 129 |
|
| 130 |
0.32 2014-04-19 |
| 131 |
|
| 132 |
- Courriel parsing is now more liberal and will accept an email with mixed |
| 133 |
line endings (some newline, some CRLF, etc.). Apparently this happens in the |
| 134 |
wild (of course it does). Reported by Joseph Crotty. RT #94837. |
| 135 |
|
| 136 |
|
| 137 |
0.31 2013-04-03 |
| 138 |
|
| 139 |
[MISC] |
| 140 |
|
| 141 |
- Removed the "this is very alpha" warning from the docs. It's really not very |
| 142 |
alpha any more. |
| 143 |
|
| 144 |
|
| 145 |
0.30 2012-08-20 |
| 146 |
|
| 147 |
[API CHANGES] |
| 148 |
|
| 149 |
- Courriel::Builder no longer exports a bcc() subroutine. Creating Bcc headers |
| 150 |
in emails does not make any sense whatsoever. See |
| 151 |
https://metacpan.org/module/Email::Sender::Manual::QuickStart#Hey-wheres-my-Bcc-support- |
| 152 |
for an explanation of why there is no such thing as a Bcc header. |
| 153 |
|
| 154 |
|
| 155 |
0.29 2012-03-07 |
| 156 |
|
| 157 |
[BUG FIXES] |
| 158 |
|
| 159 |
- Courriel now allows an email to have an empty subject when parsing, as does |
| 160 |
Courriel::Builder. Based on a patch from Zbigniew Łukasiak. |
| 161 |
|
| 162 |
|
| 163 |
0.28 2012-02-01 |
| 164 |
|
| 165 |
[BUG FIXES] |
| 166 |
|
| 167 |
- Header attribute names need to be looked up case-insensitively, according to |
| 168 |
the spec. The original casing is preserved in the Courriel::HeaderAttribute |
| 169 |
object's name(), method, but looking up an attribute by name on a |
| 170 |
Courriel::Header object now accepts any casing for the name. |
| 171 |
|
| 172 |
|
| 173 |
0.27 2011-09-24 |
| 174 |
|
| 175 |
[ENHANCEMENTS] |
| 176 |
|
| 177 |
- All objects which can stringify now support a ->stream_to API as well. This |
| 178 |
lets you stream their string output to a sub ref, filehandle, or an object |
| 179 |
with a ->print() method. If you are dealing with large emails, this API may |
| 180 |
be more efficient than generating a single string in memory. |
| 181 |
|
| 182 |
[API CHANGES] |
| 183 |
|
| 184 |
- Renamed the Header->as_header_string and HeaderAttribute->as_header_string |
| 185 |
methods to as_string, so that all objects have the same stringification API. |
| 186 |
|
| 187 |
|
| 188 |
0.26 2011-09-19 |
| 189 |
|
| 190 |
[BUG FIXES] |
| 191 |
|
| 192 |
- Add missing prereq for MooseX::Role::Parameterized. Reported by zby. |
| 193 |
|
| 194 |
|
| 195 |
0.25 2011-09-15 |
| 196 |
|
| 197 |
[BUG FIXES] |
| 198 |
|
| 199 |
- When a header value contained any non-ASCII content, Courriel would |
| 200 |
mistakenly MIME encode the whole value. In some cases, this is okay, but for |
| 201 |
some header fields it is wrong. For example, when a field contains an email |
| 202 |
address the actual address portion must be unencoded. |
| 203 |
|
| 204 |
|
| 205 |
0.24 2011-09-13 |
| 206 |
|
| 207 |
[ENHANCEMENTS] |
| 208 |
|
| 209 |
- The is_binary flag has been replaced with an is_character flag. This flag |
| 210 |
defaults to false. Suggested by zby. |
| 211 |
|
| 212 |
|
| 213 |
0.23 2011-09-13 |
| 214 |
|
| 215 |
[ENHANCEMENTS] |
| 216 |
|
| 217 |
- Courriel->parse now accepts an is_binary flag so you can pass decoded |
| 218 |
(utf-8) data as the email text. However, it's probably smarter to simply |
| 219 |
pass binary data to Courriel and let it do the decoding. The issue was |
| 220 |
brought up by zby. |
| 221 |
|
| 222 |
|
| 223 |
0.22 2011-09-13 |
| 224 |
|
| 225 |
[BUG FIXES] |
| 226 |
|
| 227 |
- Require List::MoreUtils 0.28+, as tests fail with earlier versions. |
| 228 |
|
| 229 |
- Added missing prereq on File::Slurp. |
| 230 |
|
| 231 |
|
| 232 |
0.21 2011-09-12 |
| 233 |
|
| 234 |
[API CHANGES] |
| 235 |
|
| 236 |
- The ->get_attribute() method for Courriel::ContentType and ::Disposition |
| 237 |
objects was replaced by ->attribute in 0.20. |
| 238 |
|
| 239 |
[ENHANCEMENTS] |
| 240 |
|
| 241 |
- Added a new ->get_values() method to Courriel::Headers. This lets you get |
| 242 |
the header string values directly. |
| 243 |
|
| 244 |
- Added a new ->attribute_value() for Courriel::Header::ContentType and |
| 245 |
::Disposition. This lets you get the attribute's string value, if the |
| 246 |
attribute exists. Suggested by zby. |
| 247 |
|
| 248 |
[BUG FIXES] |
| 249 |
|
| 250 |
- The previous release documented a method ->get_attribute() for |
| 251 |
Courriel::Header::ContentType and ::Disposition objects. This method was |
| 252 |
removed in 0.20 and replaced with a method named ->attribute(). |
| 253 |
|
| 254 |
|
| 255 |
0.20 2011-09-11 |
| 256 |
|
| 257 |
[API CHANGES] |
| 258 |
|
| 259 |
- The way headers are represented has been changed quite a bit |
| 260 |
internally. Read on for details. |
| 261 |
|
| 262 |
All headers are now represented as Courriel::Header objects instead of plain |
| 263 |
strings. This means that calling $headers->get('Foo') returns objects. To |
| 264 |
get the value, you need to call ->value on the individual objects. |
| 265 |
|
| 266 |
See Courriel::Header for the new class for headers. |
| 267 |
|
| 268 |
- As a corrolary, the Courriel::ContentType and Courriel::Disposition classes |
| 269 |
have been renamed to Courriel::Header::ContentType and |
| 270 |
Courriel::Header::Disposition. They are both now subclasses of |
| 271 |
Courriel::Header. The APIs of these classes have remained mostly the same, |
| 272 |
except for attribute handling (see below). |
| 273 |
|
| 274 |
The old classes are still shipped in the distro, but they die when |
| 275 |
loaded. This avoids leaving behind old modules which no longer work with |
| 276 |
newer versions of Courriel. |
| 277 |
|
| 278 |
Methods which returned the old object now return the new one. The |
| 279 |
Courriel::Headers class will return the appropriate object when the header |
| 280 |
is fetched with $headers->get(). |
| 281 |
|
| 282 |
- Header attributes for the Content-Type and Content-Disposition object are |
| 283 |
now represented as Courriel::HeaderAttribute objects. This is necessary |
| 284 |
because these attributes may contain information about their character set |
| 285 |
and language, per RFC2231. |
| 286 |
|
| 287 |
[ENHANCEMENTS] |
| 288 |
|
| 289 |
- Header attributes with character set and language data per RFC2231 are now |
| 290 |
parsed properly. Reported by zby. RT #70801. |
| 291 |
|
| 292 |
- Header attribute parsing is much laxer and will not die on bad attributes |
| 293 |
syntax (in most cases). It simply stops parsing and ignores bad data. |
| 294 |
|
| 295 |
|
| 296 |
0.19 2011-08-21 |
| 297 |
|
| 298 |
- Fixed some test failures with older versions of Test::More, which stringify |
| 299 |
objects passed to is() rather than using their overloading. Reported by |
| 300 |
Maximilian Gaß. RT #70395. |
| 301 |
|
| 302 |
- The Courriel::Disposition methods which return DateTime objects now |
| 303 |
explicitly set the time zone of the objects to UTC before returning it. |
| 304 |
|
| 305 |
|
| 306 |
0.18 2011-08-20 |
| 307 |
|
| 308 |
- More improvements in handling broken email based on jwang's corpus of broken |
| 309 |
messages. |
| 310 |
|
| 311 |
- Courriel tries a lot harder to find a date for the email. It now looks at |
| 312 |
all the Received headers, and it also uses DateTime::Format::Natural to |
| 313 |
parse dates if DateTime::Format::Mail fails. |
| 314 |
|
| 315 |
- Courriel handles the charset "unknown-8bit" (by ignoring it and treating it |
| 316 |
as ASCII). |
| 317 |
|
| 318 |
|
| 319 |
0.17 2011-08-19 |
| 320 |
|
| 321 |
- Email parsing is now much more flexible, and throws fewer |
| 322 |
exceptions. Ultimately, it's likely that Courriel will never throw an |
| 323 |
exception from parsing, since email in the wild is often broken, and it's |
| 324 |
better to return something than just give up. Thanks to jwang of |
| 325 |
grokbase.com for providing a corpus of broken messages to test against. |
| 326 |
|
| 327 |
- The Courriel->plain_body_part() and ->html_body_part() methods ignore the case |
| 328 |
of an attachment's mime type, per RFC 2045. |
| 329 |
|
| 330 |
- The Courriel::ContentType->mime_type() method always returns a value in |
| 331 |
lower case, but it preserves the original casing when constructing a header |
| 332 |
value. |
| 333 |
|
| 334 |
|
| 335 |
0.16 2011-07-21 |
| 336 |
|
| 337 |
- Add Courriel->from(), ->to(), and ->cc() methods. |
| 338 |
|
| 339 |
- Skip another test which may fail on other people's machines, as |
| 340 |
File::LibMagic does not return consistent results on all machines. |
| 341 |
|
| 342 |
|
| 343 |
0.15 2011-06-28 |
| 344 |
|
| 345 |
- Skip a test which may fail on other people's machines, as File::LibMagic |
| 346 |
does not return consistent results on all machines. |
| 347 |
|
| 348 |
|
| 349 |
0.14 2011-06-25 |
| 350 |
|
| 351 |
- An email part with non-text content would still be treated as character data |
| 352 |
rather than binary data, and its Content-Type header would end up with a |
| 353 |
charset of us-ascii. This has been fixed, and now you must explicitly ask |
| 354 |
for a charset in the Content-Type header when creating a |
| 355 |
Courriel::ContentType object. Note that plain and html body parts created |
| 356 |
via Courriel::Builder are unaffected, since these always default to UTF-8 as |
| 357 |
the charset. Reported by ico. RT #69085. |
| 358 |
|
| 359 |
- Added Courriel::ContentType->has_charset() and |
| 360 |
Courriel::ContentType->is_binary() methods. |
| 361 |
|
| 362 |
|
| 363 |
0.13 2011-06-20 |
| 364 |
|
| 365 |
- A multipart email built with Courriel::Builder would have a broken |
| 366 |
Content-Type header, missing the required boundary attribute. Reported by |
| 367 |
ico. RT #68694. |
| 368 |
|
| 369 |
- If you explicitly passed unencoded content when creating a part (which |
| 370 |
happens when using Courriel::Builder), that content would be modified so it |
| 371 |
had CRLF line endings. Now, such content is left untouched. Reported by |
| 372 |
ico. RT #68695. |
| 373 |
|
| 374 |
- When passing encoded content to the Courriel::Part::Single constructor, the |
| 375 |
constructor used to modify the content so it had CRLF line endings. Now it |
| 376 |
is left alone. |
| 377 |
|
| 378 |
- Note that if you're passing raw content to the Single constructor _and_ |
| 379 |
setting the transfer encoding to 7bit, 8bit, or binary, then you'll end up |
| 380 |
with a noncomformant email. However, by default all raw content is base64 |
| 381 |
encoded. It is strongly recommended that you pass raw content and let |
| 382 |
Courriel take care of the transfer encoding. |
| 383 |
|
| 384 |
|
| 385 |
0.12 2011-06-07 |
| 386 |
|
| 387 |
[BUG FIXES] |
| 388 |
|
| 389 |
- The value returned by Courriel::Part::Single->content() was not decoded to |
| 390 |
Perl's native utf-8 character set. Similarly, when encoding content for |
| 391 |
transfer, it was not first transformed to raw bytes. |
| 392 |
|
| 393 |
|
| 394 |
0.11 2011-06-07 |
| 395 |
|
| 396 |
[BUG FIXES] |
| 397 |
|
| 398 |
- Courriel::Builder now adds a "MIME-Version: 1.0" header to all emails it |
| 399 |
creates unless you explicitly set this header, which you probably shouldn't, |
| 400 |
since the only valid value is "1.0". This is a required header for MIME |
| 401 |
emails per RFC2045. |
| 402 |
|
| 403 |
|
| 404 |
0.10 2011-06-07 |
| 405 |
|
| 406 |
[BUG FIXES] |
| 407 |
|
| 408 |
- When parsing an email, the encoding attribute for parts was not set |
| 409 |
correctly, and ended up defaulting to 8bit for all parts. Now the encoding |
| 410 |
is set based on the part's Content-Transfer-Encoding header. |
| 411 |
|
| 412 |
|
| 413 |
0.09 2011-06-06 |
| 414 |
|
| 415 |
[NEW FEATURES] |
| 416 |
|
| 417 |
- This distro now ships a plugin for Email::Abstract, meaning you can use |
| 418 |
Courriel with Email::Sender. |
| 419 |
|
| 420 |
|
| 421 |
0.08 2011-06-06 |
| 422 |
|
| 423 |
[API CHANGES] |
| 424 |
|
| 425 |
- The content() and encoded_content() methods for Courriel::Part::Single now |
| 426 |
return strings, rather than references. This makes the typical use |
| 427 |
simpler. You can still get the reference directly by calling content_ref() |
| 428 |
and encoded_content_ref(). |
| 429 |
|
| 430 |
[BUG FIXES] |
| 431 |
|
| 432 |
- Make sure that any Content-ID header set via Courriel::Builder is formatted |
| 433 |
properly (the id value should be wrapped in angle brackets). |
| 434 |
|
| 435 |
|
| 436 |
0.07 2011-06-06 |
| 437 |
|
| 438 |
- Some tests were failing because File::LibMagic may return slightly different |
| 439 |
results on different systems (application/x-perl versus text/x-perl). |
| 440 |
|
| 441 |
|
| 442 |
0.06 2011-06-05 |
| 443 |
|
| 444 |
- Add missing test prereq on File::Slurp. |
| 445 |
|
| 446 |
- The clone_without_attachments() method could end up setting the wrong |
| 447 |
encoding when creating a new single part email. |
| 448 |
|
| 449 |
|
| 450 |
0.05 2011-06-04 |
| 451 |
|
| 452 |
- The clone_without_attachments() method would die when calling on an email |
| 453 |
that contained both plain and html inline parts. |
| 454 |
|
| 455 |
|
| 456 |
0.04 2011-06-04 |
| 457 |
|
| 458 |
- Add missing prereq on File::LibMagic (needed since 0.02). |
| 459 |
|
| 460 |
|
| 461 |
0.03 2011-06-04 |
| 462 |
|
| 463 |
- The encoding parameter is now always set in a part's headers. |
| 464 |
|
| 465 |
|
| 466 |
0.02 2011-06-04 |
| 467 |
|
| 468 |
- Added all_parts_matching() method to Courriel class. |
| 469 |
|
| 470 |
- Added clone_without_attachments() method to Courriel class. |
| 471 |
|
| 472 |
- The Courriel::Part::Single attribute raw_content has been renamed as |
| 473 |
encoded_content. |
| 474 |
|
| 475 |
- The text_body_part() method is now called plain_body_part(). |
| 476 |
|
| 477 |
- The add() and unshift() methods in Courriel::Headers now accept only one |
| 478 |
value. |
| 479 |
|
| 480 |
- Added Courriel::Headers->replace as a convenience method. |
| 481 |
|
| 482 |
- A header with attributes (like Content-Type) can escape values inside a |
| 483 |
quoted string, like value="foo \" bar". Courriel wasn't unescaping these |
| 484 |
values. |
| 485 |
|
| 486 |
- It is now possible to pass a Courriel::Disposition object explicitly when |
| 487 |
constructing a Courriel::Part::Single object. The docs said this was |
| 488 |
possible in 0.01, but the parameter was just ignored. |
| 489 |
|
| 490 |
- If a part is created with an explicit content_type and/or disposition |
| 491 |
object, the part's headers will be updated so that the Content-Type and |
| 492 |
Content-Disposition match the given object. |
| 493 |
|
| 494 |
- The boundary for a Multipart part and the boundary in its ContentType's |
| 495 |
attributes will always be the same. |
| 496 |
|
| 497 |
- All classes now use MooseX::StrictConstructor. |
| 498 |
|
| 499 |
- Some hacks to make it possible for Courriel to play nice with |
| 500 |
Email::Abstract. |
| 501 |
|
| 502 |
- Fixed some small doc errors. |
| 503 |
|
| 504 |
|
| 505 |
0.01 2011-05-31 |
| 506 |
|
| 507 |
- First release upon an unsuspecting world. |