Skip to content

fix(email): keep display names when sending over SMTP - #710

Merged
m4tx merged 1 commit into
masterfrom
fix-mailing-display-names
Oct 19, 2026
Merged

m4tx merged 1 commit into
masterfrom
fix-mailing-display-names

Conversation

@m4tx

@m4tx m4tx commented Oct 16, 2026

Copy link
Copy Markdown
Member

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / cleanup
  • Performance improvement
  • Other (describe above)

@m4tx
m4tx requested review from ElijahAhianyo and seqre and a balanced review from Copilot October 16, 2026 07:09
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

🐰 Bencher Report

Projectcot
Branchfix-mailing-display-names
Testbedgithub-ubuntu-latest
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
microseconds (µs)
(Result Δ%)
Upper Boundary
microseconds (µs)
(Limit %)
empty_router/empty_router📈 view plot
🚷 view threshold
15,653.00 µs
(+31.67%)Baseline: 11,888.30 µs
18,543.38 µs
(84.41%)
json_api/json_api📈 view plot
🚷 view threshold
1,058.60 µs
(+4.68%)Baseline: 1,011.32 µs
1,348.28 µs
(78.51%)
nested_routers/nested_routers📈 view plot
🚷 view threshold
1,027.60 µs
(+7.65%)Baseline: 954.55 µs
1,256.64 µs
(81.77%)
single_root_route/single_root_route📈 view plot
🚷 view threshold
957.78 µs
(+4.64%)Baseline: 915.33 µs
1,213.44 µs
(78.93%)
single_root_route_burst/single_root_route_burst📈 view plot
🚷 view threshold
15,960.00 µs
(-5.08%)Baseline: 16,814.84 µs
22,148.74 µs
(72.06%)
🐰 View full continuous benchmarking report in Bencher

@github-actions github-actions Bot added the C-lib Crate: cot (main library crate) label Oct 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change consistently handles all address fields, with regression coverage and no identified blocking issues.

0 open findings

What changed in this PR

Fixes SMTP message conversion to preserve email display names across all address fields.

Changes:

  • Centralizes address conversion in a shared helper.
  • Adds regression coverage for sender and recipient display names.
File Description
cot/​src/​email/​transport/​smtp.rs Preserves display names during conversion and adds regression tests.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.87097% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cot/src/email/transport/smtp.rs 83.87% 0 Missing and 5 partials ⚠️
Flag Coverage Δ
rust 90.96% <83.87%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cot/src/email/transport/smtp.rs 89.07% <83.87%> (-0.38%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@m4tx
m4tx requested a balanced review from Copilot October 16, 2026 08:13

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The focused change consistently preserves display names across address fields, with no blocking issues identified.

0 open findings

🧠 Review effort: Balanced

@m4tx
m4tx force-pushed the fix-mailing-display-names branch from b41a201 to 03b5f74 Compare October 19, 2026 16:40
@m4tx
m4tx enabled auto-merge (squash) October 19, 2026 16:40
@m4tx
m4tx merged commit 82380af into master Oct 19, 2026
43 of 44 checks passed
@m4tx
m4tx deleted the fix-mailing-display-names branch October 19, 2026 17:23
@cotbot cotbot Bot mentioned this pull request Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-lib Crate: cot (main library crate)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants