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

jhillyerd / enmime / 33986100358
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v2.5.0
DEFAULT BRANCH: main
Ran 05 Sep 2026 07:06PM UTC
Jobs 2
Files 39
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

05 Sep 2026 07:05PM UTC coverage: 86.855% (+0.1%) from 86.742%
33986100358

Pull #413

github

jhillyerd
Add MaxMIMEParts option to cap parsed MIME parts

Messages with a huge number of (possibly tiny) sibling parts could consume
excessive CPU and memory while parsing: every part was materialized with no
part-count limit, and appending each child re-walked the sibling chain,
making part insertion quadratic in the number of parts.

- Add the MaxMIMEParts parser option (default 10000, zero or negative
  disables), enforced by a budget shared across nested multipart parsing.
  Exceeding it aborts parsing with a TooManyPartsError, which is always
  fatal even when SkipMalformedParts is enabled, since the part tree would
  be incomplete.
- Track the tail of each child chain in parseParts via the new appendChild
  helper so appends are O(1) instead of walking the sibling list; AddChild
  delegates to it, preserving its public behavior.
Pull Request #413: Add MaxMIMEParts option to cap parsed MIME parts

50 of 52 new or added lines in 3 files covered. (96.15%)

19 existing lines in 1 file now uncovered.

3383 of 3895 relevant lines covered (86.85%)

4353.78 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
94.18
0.97% part.go

Coverage Regressions

Lines Coverage ∆ File
19
94.18
0.97% part.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.25.x - 33986100358.1 05 Sep 2026 07:07PM UTC 39
86.85
GitHub Action Run
2 Go-1.26.x - 33986100358.2 05 Sep 2026 07:06PM UTC 39
86.85
GitHub Action Run
Source Files on build 33986100358
  • Tree
  • List 39
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #413
  • PR Base - main (#33983401449)
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