Upgrade notes
- With
rustlsenabled,Certificate::from_pemfails for a PEM in which rustls finds no certificate. That includes a certificate under the oldX509 CERTIFICATElabel, which OpenSSL and BoringSSL read and rustls doesn't - Messages built with
MessageBuilder::bodyhave aMIME-Version: 1.0header, written after the headers set before the call tobody
Bug Fixes
- Refuse a PEM without certificates in
Certificate::from_pemwithrustls(83a7425) - Write the
MIME-Version: 1.0header in messages built withMessageBuilder::body, asmultipartandsinglepartalready did (414e7af) - Fix deserializing an
Addressfrom its{ user, domain }form with deserializers that can't borrow the strings from their input, likeserde_json::from_reader(4fad203) - Accept
"name": nullwhen deserializing aMailbox(4fad203) - Don't quote the display name of a
Mailboxbecause of the digit9(48a79e1)
Misc
- Avoid reallocations in
Message::formatted,SinglePart::formattedandMultiPart::formattedby allocating the exact size up front (#1189) - Fix building the unit tests with
smtp-transportand no TLS backend (2d57a25) - Document the private key formats that
DkimSigningKey::newaccepts (d93f9f3) - Document when
MessageBuilder::bodyandSinglePartBuilder::bodypanic (ececa87) - Clarify that
PoolConfig::max_sizelimits the idle connections kept in the pool, not the open ones (92c02ae) - Document that the password of
Credentialsis the access token withMechanism::Xoauth2(cbbf57e) - Document which replies make an SMTP
Errortransient or permanent (#940 and c092ce8) - Fix
html_root_urlpointing 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)