Repository navigation
Update Rust crate lettre to v0.11.25 - #51
Conversation
97ec6a0 to
38f51df
Compare
There was a problem hiding this comment.
Approved: no adaptation is required under the configured project policy.
Approve PR #51 unchanged. It updates only the locked lettre version and checksum from 0.11.24 to 0.11.25 and merges cleanly into the recorded target. Digest mail uses platform TLS verification and multipart MIME, so the stricter custom PEM parser and the new header on direct message bodies require no migration. Formatting, Clippy, and the Rust and release-script tests passed in just check. The REUSE step scanned generated build output in the temporary export and failed. just reuse-lint passed in a fresh export. No deprecation or retirement in this release requires follow-up.
Agent-assessed risk: Low. The patch leaves the dependency graph and compiler requirements intact, and the SMTP fixture passed for multipart rendering, delivery acceptance, and refusal classification.
Evidence (8 items)
- Local check:
`git merge-base 793ed15169dcb69ab6d72572e78f467e0c5b7536 refs/artidezi/inputs/source-pr`, `git diff 793ed15169dcb69ab6d72572e78f467e0c5b7536...refs/artidezi/inputs/source-pr -- Cargo.lock`, and `git diff --check 793ed15169dcb69ab6d72572e78f467e0c5b7536...refs/artidezi/inputs/source-pr`— The recorded target is the merge base. The PR changes only the lettre version and checksum in Cargo.lock. The whitespace check passed. - Local check:
`git merge-tree --write-tree 793ed15169dcb69ab6d72572e78f467e0c5b7536 refs/artidezi/inputs/source-pr`— The clean merge produced tree fefcedd731e4e75192be2252875384617a4b75cd, identical to the source tree tested locally. - Release notes: source — The release tightens rustls certificate parsing and adds MIME-Version for MessageBuilder::body. A sender display name containing 9 can lose unnecessary quoting. Address and Mailbox deserialization fixes do not affect ArtiDezi, which parses address strings and constructs mailboxes directly.
- Documentation:
crates/orchestrator/src/digests/smtp.rs and crates/config/src/model.rs— SMTP uses the rustls platform verifier and exposes no custom PEM setting. Digests already use multipart/alternative with text and HTML parts. - Upstream diff: source — Compared registry metadata and the tagged Cargo.toml files. Dependencies, features, Rust 1.85 MSRV and edition 2024 are unchanged. Version 0.11.25 is published and unyanked. Downloading its crate archive with curl and hashing it with sha256sum matched Cargo.lock.
- Local check:
`just check`— Ran against a temporary export of source head 38f51df. Formatting, Clippy, workspace tests including the loopback SMTP fixture, and release-script tests passed. The command exited 1 in REUSE because the export lacked Git metadata and the scan included the generated target directory. The SMTP fixture does not exercise a live TLS relay. - Local check:
`just reuse-lint`— Passed in a clean export of the same candidate, with copyright and license metadata for all 227 files. - Evidence:
Recorded source CI snapshot and Forgejo test scope— The snapshot reports successful amd64 and arm64 Rust, REUSE and dependency license/source checks. just forgejo-test was not run because the patch affects SMTP and does not change Forgejo, forge adapters or an HTTP client.
Assessed source 38f51dfd74b71d6dd719a9e718f7eeb7b6ab1386.
This PR contains the following updates:
0.11.24→0.11.25Release Notes
lettre/lettre (lettre)
v0.11.25Compare Source
Upgrade notes
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'tMessageBuilder::bodyhave aMIME-Version: 1.0header, written after the headers set before the call tobodyBug Fixes
Certificate::from_pemwithrustls(83a7425)MIME-Version: 1.0header in messages built withMessageBuilder::body, asmultipartandsinglepartalready did (414e7af)Addressfrom its{ user, domain }form with deserializers that can't borrow the strings from their input, likeserde_json::from_reader(4fad203)"name": nullwhen deserializing aMailbox(4fad203)Mailboxbecause of the digit9(48a79e1)Misc
Message::formatted,SinglePart::formattedandMultiPart::formattedby allocating the exact size up front (#1189)smtp-transportand no TLS backend (2d57a25)DkimSigningKey::newaccepts (d93f9f3)MessageBuilder::bodyandSinglePartBuilder::bodypanic (ececa87)PoolConfig::max_sizelimits the idle connections kept in the pool, not the open ones (92c02ae)Credentialsis the access token withMechanism::Xoauth2(cbbf57e)Errortransient or permanent (#940 and c092ce8)html_root_urlpointing to the page of the crate on docs.rs instead of the documentation (a7a35cb)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.