Skip to content

fix(sender): fold References header#1323

Closed
resolvicomai wants to merge 1 commit into
floatpane:masterfrom
resolvicomai:fix/references-header-folding
Closed

fix(sender): fold References header#1323
resolvicomai wants to merge 1 commit into
floatpane:masterfrom
resolvicomai:fix/references-header-folding

Conversation

@resolvicomai
Copy link
Copy Markdown
Contributor

What?

Fold References header values at RFC 5322 recommended line length, and reuse the formatter for regular email and calendar replies. Very long reference chains now keep the root reference and newest reply context while trimming older middle IDs to stay under the hard line limit.

Why?

Closes #1115. A deep reply thread could emit one oversized References line, which some MTAs reject or truncate. Added sender tests for folding and middle trimming.

Tests: go test ./sender; go test ./...; git diff --check

@resolvicomai resolvicomai requested a review from a team as a code owner May 21, 2026 12:14
@floatpanebot floatpanebot added area/sender SMTP send path size/M Diff: 51–200 lines bug Something isn't working labels May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sender SMTP send path bug Something isn't working size/M Diff: 51–200 lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: References header can exceed 998-char SMTP line limit

2 participants