Skip to content

SP-28: accept capitalized "MAIL From:" and cover it with tests - #24

Merged
oetiker merged 1 commit into
masterfrom
sp-28-mail-from-case
Sep 2, 2026
Merged

SP-28: accept capitalized "MAIL From:" and cover it with tests#24
oetiker merged 1 commit into
masterfrom
sp-28-mail-from-case

Conversation

@zaucker

@zaucker zaucker commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

RFC 5321 section 4.1.1.2 spells the keyword "MAIL FROM:", but some clients send "MAIL From:". Be lenient and accept both, while still rejecting other spellings.

Adds t/command-parser.t with table-driven cases for the accepted and rejected spellings, including the parameter and leading-space forms.

RFC 5321 section 4.1.1.2 spells the keyword "MAIL FROM:", but some
clients send "MAIL From:". Be lenient and accept both, while still
rejecting other spellings.

Adds t/command-parser.t with table-driven cases for the accepted and
rejected spellings, including the parameter and leading-space forms.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@zaucker
zaucker marked this pull request as ready for review August 31, 2026 12:23
@oetiker
oetiker merged commit f699dc8 into master Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants