[PR #2532] [MERGED] Small email sending code improvements #15953

Closed
opened 2026-04-23 07:36:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/2532
Author: @paolobarbolini
Created: 6/4/2022
Status: Merged
Merged: 6/4/2022
Merged by: @dani-garcia

Base: mainHead: lettre-improvements


📝 Commits (2)

  • 68ec5f2 Use MultiPart::alternative_plain_html instead of manual impl
  • 12612da Remove manual IDN handling

📊 Changes

3 files changed (+3 additions, -29 deletions)

View changed files

📝 Cargo.lock (+0 -1)
📝 Cargo.toml (+0 -1)
📝 src/mail.rs (+3 -27)

📄 Description

Changes building Address by going through the FromStr implementation. Also removes the manual MultiPart build implementation, which must have been a workaround for a bug in a previous version.

Depends on #2531


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/2532 **Author:** [@paolobarbolini](https://github.com/paolobarbolini) **Created:** 6/4/2022 **Status:** ✅ Merged **Merged:** 6/4/2022 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `lettre-improvements` --- ### 📝 Commits (2) - [`68ec5f2`](https://github.com/dani-garcia/vaultwarden/commit/68ec5f2a183d011ad0840ff9d8f6f670b6fc9aa1) Use MultiPart::alternative_plain_html instead of manual impl - [`12612da`](https://github.com/dani-garcia/vaultwarden/commit/12612da75e3635c3c7d5aedf89115847d310a12f) Remove manual IDN handling ### 📊 Changes **3 files changed** (+3 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+0 -1) 📝 `Cargo.toml` (+0 -1) 📝 `src/mail.rs` (+3 -27) </details> ### 📄 Description Changes building `Address` by going through the `FromStr` implementation. Also removes the manual `MultiPart` build implementation, which must have been a workaround for a bug in a previous version. Depends on #2531 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-23 07:36:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#15953