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

jhillyerd / enmime / 42528551273
89%

Build:
DEFAULT BRANCH: main
Ran 08 Nov 2026 10:07PM UTC
Jobs 3
Files 40
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 10:06PM UTC coverage: 88.902%. Remained the same
42528551273

push

github

web-flow
Add MaxMIMEDepth option to cap multipart nesting (#434)

* feat: add MaxMIMEDepth option to cap multipart nesting

Each nested multipart reads the message through one more boundaryReader,
which copies every byte of its part, so ReadParts takes time proportional
to the size of the message times its nesting depth (#424): a message of
thousands of nested levels holds the parser for seconds per megabyte.

With MaxMIMEDepth(n), a multipart nested deeper than n containers, the
root one included, is not parsed: it is kept as a leaf part holding its
raw content, with an ErrorNestingTooDeep part error, and the rest of the
message is parsed as usual. The limit is off by default, which keeps the
current behavior.

* fix: encode a multipart kept unparsed without transfer encoding

A multipart over MaxMIMEDepth is a leaf holding its raw body. Part.Encode
treated that body as decoded content and could pick quoted-printable or
base64 for it, which RFC 2045 6.4 forbids for multiparts and which hides
its boundaries from a later parse. A multipart without children now gets
8bit, like message types, so its body is written as is. Multiparts with
children keep their current encoding.

* fix: keep base64 for a childless multipart streamed from a ContentReader

encodeContentFromReader always writes base64, so declaring 8bit for a
multipart without children that has a ContentReader would mislabel its
body. The 8bit rule now applies only to content held in Part.Content,
which is what the parser fills for a multipart over MaxMIMEDepth.

21 of 23 new or added lines in 3 files covered. (91.3%)

3653 of 4109 relevant lines covered (88.9%)

41852.71 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.06
-0.41% part.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.25.x - 42528551273.1 08 Nov 2026 10:07PM UTC 40
87.5
GitHub Action Run
2 Go-1.27.x - 42528551273.2 08 Nov 2026 10:07PM UTC 40
86.95
GitHub Action Run
3 Go-1.26.x - 42528551273.3 08 Nov 2026 10:07PM UTC 40
87.5
GitHub Action Run
Source Files on build 42528551273
  • Tree
  • List 40
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 083c9a48 on github
  • Prev Build on main (#42519488879)
  • Next Build on main (#42537004570)
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