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

jhillyerd / enmime
87%

Build:
DEFAULT BRANCH: main
Repo Added 03 Dec 2016 09:21PM UTC
Files 39
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 303-eml-attactment-issue
  • 331-bug-getheader-doesnt-add-quote-for-especials
  • TestRandOption-fails
  • api
  • bugfix/inline-attachments-not-properly-parsed
  • cibadge
  • cte-override
  • cve-fix
  • dc/stacks
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/actions/setup-go-5
  • dependabot/github_actions/actions/setup-go-6
  • dependabot/github_actions/actions/setup-go-7
  • dependabot/github_actions/golangci/golangci-lint-action-4
  • dependabot/github_actions/golangci/golangci-lint-action-5
  • dependabot/github_actions/golangci/golangci-lint-action-6
  • dependabot/github_actions/golangci/golangci-lint-action-7
  • dependabot/github_actions/golangci/golangci-lint-action-8
  • dependabot/github_actions/golangci/golangci-lint-action-9
  • dependabot/go_modules/golang.org/x/net-0.17.0
  • dependabot/go_modules/golang.org/x/net-0.23.0
  • dependabot/go_modules/golang.org/x/net-0.55.0
  • dependabot/go_modules/gopkg.in/yaml.v3-3.0.0
  • deps
  • encoding-options
  • errfmt
  • ex-builder
  • fix-empty-body-header-separator
  • fix-html-part-with-boundary
  • fix-mediatype-substring-param-drop
  • fix/base64cleaner-error-policy
  • fix/issue-109
  • gci1xx
  • gci2xx
  • ghabot
  • go-fix
  • go123
  • godeps
  • golint
  • gover
  • govet
  • lint-fix
  • lintfix
  • lints
  • main
  • mimeheader-294
  • minchardet
  • modv2
  • nixbump
  • nixgo
  • readme
  • refs/tags/v1.0.0
  • refs/tags/v1.0.1
  • refs/tags/v1.1.0
  • refs/tags/v1.2.0
  • refs/tags/v1.3.0
  • refs/tags/v2.0.0
  • refs/tags/v2.1.0
  • refs/tags/v2.2.0
  • refs/tags/v2.3.0
  • refs/tags/v2.4.0
  • refs/tags/v2.4.1
  • release-2.2.0
  • repet
  • revert-298
  • rm-unused-func
  • tp-errors
  • tw10
  • update-linters
  • vet

12 Aug 2026 05:28PM UTC coverage: 86.576% (+0.01%) from 86.563%
31622775533

push

github

web-flow
Close the header section when a part has an empty body (#410)

* Close the header section when a part has an empty body

Part.Encode only wrote the empty line separating the header section from
the body when the part had content, so a message built with no body ended
after its last header line. Reading that back with net/textproto's
ReadMIMEHeader returns the headers along with io.EOF, because the header
section was terminated by end of input rather than by the empty line.

Write the separator for parts without children even when the body is
empty. Parts with children are unchanged: they already get that line from
the leading CRLF of the first boundary marker.

Fixes #196

* test: use require.NoError for the ReadMIMEHeader error check

testifylint's require-error rule: an error assertion that gates later
assertions should stop the test (require) rather than continue (assert).

5 of 5 new or added lines in 1 file covered. (100.0%)

3328 of 3844 relevant lines covered (86.58%)

4281.58 hits per line

Relevant lines Covered
Build:
Build:
3844 RELEVANT LINES 3328 COVERED LINES
4281.58 HITS PER LINE
Source Files on main
  • Tree
  • List 39
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
31622775533 main Close the header section when a part has an empty body (#410) * Close the header section when a part has an empty body Part.Encode only wrote the empty line separating the header section from the body when the part had content, so a message buil... push 12 Aug 2026 05:28PM UTC web-flow github
86.58
31562897234 fix-empty-body-header-separator test: use require.NoError for the ReadMIMEHeader error check testifylint's require-error rule: an error assertion that gates later assertions should stop the test (require) rather than continue (assert). Pull #410 12 Aug 2026 04:19AM UTC hdimer github
86.58
31559924821 fix-empty-body-header-separator Close the header section when a part has an empty body Part.Encode only wrote the empty line separating the header section from the body when the part had content, so a message built with no body ended after its last header line. Reading that bac... Pull #410 12 Aug 2026 03:23AM UTC hdimer github
86.58
31328812564 main Add ContentTransferEncoding field to force CTE on a Part (#396) * Add ContentTransferEncoding field to force CTE on a Part Allows callers to override the automatic Content-Transfer-Encoding selection on a per-part basis. Valid values are "7bit",... push 09 Aug 2026 06:21PM UTC web-flow github
86.56
31328657389 cte-override always emit header when forced Signed-off-by: James Hillyerd <james@hillyerd.com> Pull #396 09 Aug 2026 06:17PM UTC jhillyerd github
86.56
31328554112 cte-override always emit header when forced Signed-off-by: James Hillyerd <james@hillyerd.com> Pull #396 09 Aug 2026 06:15PM UTC jhillyerd github
86.56
31327229120 cte-override small improvements Signed-off-by: James Hillyerd <james@hillyerd.com> Pull #396 09 Aug 2026 05:45PM UTC jhillyerd github
86.54
31327105509 cte-override small improvements Signed-off-by: James Hillyerd <james@hillyerd.com> Pull #396 09 Aug 2026 05:42PM UTC jhillyerd github
86.54
31326144328 cte-override Add ContentTransferEncoding field to force CTE on a Part Allows callers to override the automatic Content-Transfer-Encoding selection on a per-part basis. Valid values are "7bit", "8bit", "base64", and "quoted-printable". Empty or unrecognised va... Pull #396 09 Aug 2026 05:20PM UTC jhillyerd github
86.44
31326058916 main fix: call ReadPartErrorPolicy for Base64Cleaner-collected errors (#315) (#409) Co-authored-by: patchwright <patchwright@users.noreply.github.com> push 09 Aug 2026 05:19PM UTC web-flow github
86.47
See All Builds (908)
  • Repo on GitHub
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