• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jhillyerd / enmime / 42537004570
89%

Build:
DEFAULT BRANCH: main
Ran 08 Nov 2026 11:50PM UTC
Jobs 3
Files 41
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Nov 2026 11:49PM UTC coverage: 89.053% (+0.2%) from 88.902%
42537004570

push

github

web-flow
Add Envelope.Send and SendWithReversePath (issue #158 Phase 1) (#436)

* Add Envelope.Send and SendWithReversePath to transmit a parsed envelope

Take an Envelope from ReadEnvelope(), edit its address headers, and send
it through the existing Sender interface without rebuilding the message.
Recipients are collected from every value of the To, Cc and Bcc headers,
so messages that fold recipients across multiple lines deliver all of
them; the From header provides the reverse-path unless one is given
explicitly.  A Bcc header is delivered as recipients but stripped from
the transmitted bytes per RFC 5322 section 3.6.3, and restored on the
envelope afterwards.

Closes #158 (Phase 1).

* Reject CR/LF in envelope addresses before sending

ParseAddressList decodes RFC 2047 encoded words, so a recipient or From
header such as "=?utf-8?q?a=0D=0Ab?=@example.com" can decode to an
address embedding CRLF.  net/smtp rejects such lines, but a custom
Sender that writes SMTP commands verbatim would be vulnerable to command
injection.  Validate parsed recipients and reverse-paths, and an
explicit reverse-path, before handing them to Sender.Send.

Addresses the CodeRabbit review on #158 Phase 1.

87 of 93 new or added lines in 1 file covered. (93.55%)

3742 of 4202 relevant lines covered (89.05%)

40953.42 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
93.55
envelope_send.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.25.x - 42537004570.1 08 Nov 2026 11:50PM UTC 41
87.68
GitHub Action Run
2 Go-1.27.x - 42537004570.2 08 Nov 2026 11:50PM UTC 41
87.15
GitHub Action Run
3 Go-1.26.x - 42537004570.3 08 Nov 2026 11:50PM UTC 41
87.68
GitHub Action Run
Source Files on build 42537004570
  • Tree
  • List 41
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 22aece06 on github
  • Prev Build on main (#42528551273)
  • Next Build on main (#42549480171)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc