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

jhillyerd / enmime / 46299028647
89%

Build:
DEFAULT BRANCH: main
Ran 29 Nov 2026 07:07PM 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

29 Nov 2026 07:06PM UTC coverage: 89.184% (-0.02%) from 89.201%
46299028647

push

github

web-flow
fix: write 7bit and 8bit text bodies with CRLF line endings (#440)

* fix: write 7bit and 8bit text bodies with CRLF line endings

Text content that selects (or is forced to) 7bit or 8bit is copied to
the message verbatim, so bare LF or CR line breaks in content supplied
through the Builder or Part.Content end up in the output. RFC 5322
section 2.3 says CR and LF must only occur together as CRLF in the
body, and RFC 5321 2.3.8 forbids bare CR and LF in SMTP data;
quoted-printable and base64 bodies already come out with CRLF.

Convert bare LF and bare CR to CRLF when writing 7bit/8bit text that
did not come from the parser. Parsed parts, raw content and content
streamed from a ContentReader as base64 are written as before.

* fix: keep the parser state when cloning a part

A clone of a parsed part must encode byte for byte like the original, so
Part.Clone now carries the parser reference that encodeContent uses to
decide whether a text body is written as parsed.

* test: use the exported ReadParts in the clone encoding test

* test: assert the parsed body before comparing its clone

27 of 31 new or added lines in 2 files covered. (87.1%)

3900 of 4373 relevant lines covered (89.18%)

39398.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
88.39
-0.23% encode.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.27.x - 46299028647.1 29 Nov 2026 07:07PM UTC 41
87.32
GitHub Action Run
2 Go-1.25.x - 46299028647.2 29 Nov 2026 07:07PM UTC 41
87.86
GitHub Action Run
3 Go-1.26.x - 46299028647.3 29 Nov 2026 07:07PM UTC 41
87.86
GitHub Action Run
Source Files on build 46299028647
  • Tree
  • List 41
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e8204387 on github
  • Prev Build on main (#44591159899)
  • Next Build on main (#46299807742)
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