Skip to content

Accept and handle emails sent with an empty 821.From / return-path as…#561

Merged
jhillyerd merged 2 commits intoinbucket:mainfrom
wttw:nullenvelope
Mar 17, 2025
Merged

Accept and handle emails sent with an empty 821.From / return-path as…#561
jhillyerd merged 2 commits intoinbucket:mainfrom
wttw:nullenvelope

Conversation

@wttw
Copy link
Copy Markdown
Contributor

@wttw wttw commented Mar 16, 2025

Accept and handle emails sent with an empty 821.From / return-path as it would any other email.

Passes unit tests.

Manual testing via the web UI after delivering mails with an empty 821.From, both with and without a 5322 From: header shows no problems.

Inbucket doesn't display the 821.From in the UI, so previous concerns about an empty field breaking the UI aren't an issue, so the previous code that replaced an empty 821.From with the string "unassigned" have been removed (and they've not had any effect for years)

Closes #558.

… it would any other email.

Signed-off-by: Steve Atkins <[email protected]>
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 16, 2025

Pull Request Test Coverage Report for Build 13898407630

Details

  • 1 of 6 (16.67%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 50.404%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/policy/address.go 0 5 0.0%
Totals Coverage Status
Change from base Build 13375513733: -0.1%
Covered Lines: 2867
Relevant Lines: 5688

💛 - Coveralls

@jhillyerd jhillyerd merged commit 9904399 into inbucket:main Mar 17, 2025
7 of 10 checks passed
gregorwolf pushed a commit to gregorwolf/inbucket that referenced this pull request Apr 8, 2025
inbucket#561)

* Accept and handle emails sent with an empty 821.From / return-path as it would any other email.
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.

Incorrect handling of empty envelope sender

3 participants