cargo lettre 0.11.25
v0.11.25

6 hours ago

Upgrade notes

  • With rustls enabled, Certificate::from_pem fails for a PEM in which rustls finds no certificate. That includes a certificate under the old X509 CERTIFICATE label, which OpenSSL and BoringSSL read and rustls doesn't
  • Messages built with MessageBuilder::body have a MIME-Version: 1.0 header, written after the headers set before the call to body

Bug Fixes

  • Refuse a PEM without certificates in Certificate::from_pem with rustls (83a7425)
  • Write the MIME-Version: 1.0 header in messages built with MessageBuilder::body, as multipart and singlepart already did (414e7af)
  • Fix deserializing an Address from its { user, domain } form with deserializers that can't borrow the strings from their input, like serde_json::from_reader (4fad203)
  • Accept "name": null when deserializing a Mailbox (4fad203)
  • Don't quote the display name of a Mailbox because of the digit 9 (48a79e1)

Misc

  • Avoid reallocations in Message::formatted, SinglePart::formatted and MultiPart::formatted by allocating the exact size up front (#1189)
  • Fix building the unit tests with smtp-transport and no TLS backend (2d57a25)
  • Document the private key formats that DkimSigningKey::new accepts (d93f9f3)
  • Document when MessageBuilder::body and SinglePartBuilder::body panic (ececa87)
  • Clarify that PoolConfig::max_size limits the idle connections kept in the pool, not the open ones (92c02ae)
  • Document that the password of Credentials is the access token with Mechanism::Xoauth2 (cbbf57e)
  • Document which replies make an SMTP Error transient or permanent (#940 and c092ce8)
  • Fix html_root_url pointing to the page of the crate on docs.rs instead of the documentation (a7a35cb)
  • Fix inaccuracies and typos throughout the docs, the README and the examples (#1187)

Don't miss a new lettre release

NewReleases is sending notifications on new releases.