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

jhillyerd / enmime
86%
main: 86%

Build:
Build:
LAST BUILD BRANCH: fix/issue-109
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 fix/issue-109
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
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/setup-go-5
  • dependabot/github_actions/actions/setup-go-6
  • 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/gopkg.in/yaml.v3-3.0.0
  • deps
  • encoding-options
  • errfmt
  • ex-builder
  • fix-html-part-with-boundary
  • 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

07 Jun 2026 08:26PM UTC coverage: 86.41% (+0.01%) from 86.4%
27103795997

Pull #401

github

troclaux
fix: assemble RFC 2231 multi-segment filename params with non-UTF-8 charsets

Go's mime.ParseMediaType only supports UTF-8 and US-ASCII in RFC 2231
charset-encoded continuation parameters. When a Content-Disposition header
uses a non-ASCII charset (e.g. EUC-KR) split across multiple filename*N*=
segments, stdlib discards all but the last successfully decoded segment,
producing a truncated filename.

Add assembleRFC2231Params in the mediatype package to detect continuation
parameters (name*N*= / name*N=), sort by segment number, concatenate the
percent-decoded bytes, convert from the declared charset to UTF-8 using
enmime's existing coding package, and replace the N-segment params with a
single RFC 2231 UTF-8 encoded parameter before passing to mime.ParseMediaType.

Fixes #109
Pull Request #401: fix: assemble RFC 2231 multi-segment filename params with non-UTF-8 charsets

93 of 107 new or added lines in 1 file covered. (86.92%)

3370 of 3900 relevant lines covered (86.41%)

4215.29 hits per line

Relevant lines Covered
Build:
Build:
3900 RELEVANT LINES 3370 COVERED LINES
4215.29 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
27103795997 fix/issue-109 fix: assemble RFC 2231 multi-segment filename params with non-UTF-8 charsets Go's mime.ParseMediaType only supports UTF-8 and US-ASCII in RFC 2231 charset-encoded continuation parameters. When a Content-Disposition header uses a non-ASCII charset... Pull #401 07 Jun 2026 08:24PM UTC troclaux github
86.41
27102315230 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 07 Jun 2026 07:21PM UTC jhillyerd github
86.37
27102267292 main chore: go fix (#400) Co-authored-by: zdiff <zdiff@localhost> push 07 Jun 2026 07:19PM UTC web-flow github
86.4
27075946266 go-fix chore: go fix Pull #400 06 Jun 2026 10:43PM UTC zdiff github
86.4
27069531078 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 06 Jun 2026 05:50PM UTC jhillyerd github
86.35
27069482954 main fix: escape arbitrary input in textproto errors (CVE-2026-42507) (#399) Apply the same fix as Go CL 777060 to our vendored internal/textproto: - Quote Error.Msg in Error.Error() via %q - Escape user-controlled input in all ProtocolError messages ... push 06 Jun 2026 05:48PM UTC web-flow github
86.38
27069372001 cve-fix fix: escape arbitrary input in textproto errors (CVE-2026-42507) Apply the same fix as Go CL 777060 to our vendored internal/textproto: - Quote Error.Msg in Error.Error() via %q - Escape user-controlled input in all ProtocolError messages via %q ... Pull #399 06 Jun 2026 05:43PM UTC jhillyerd github
86.38
27069364693 cve-fix fix: escape arbitrary input in textproto errors (CVE-2026-42507) Apply the same fix as Go CL 777060 to our vendored internal/textproto: - Quote Error.Msg in Error.Error() via %q - Escape user-controlled input in all ProtocolError messages via %q ... push 06 Jun 2026 05:42PM UTC jhillyerd github
86.38
27069273966 tp-errors fix: decouple internal/textproto from net/textproto, apply CVE-2026-42507 The vendored internal/textproto package was importing net/textproto and using its ProtocolError and Error types. This undermined the purpose of vendoring, as Go 1.26's CVE-... Pull #398 06 Jun 2026 05:38PM UTC jhillyerd github
86.38
27069187272 refs/tags/v2.4.1 fix: decouple internal/textproto from net/textproto error types (#397) The vendored internal/textproto package was importing net/textproto and using its ProtocolError and Error types. This undermined the purpose of vendoring, as Go 1.26's CVE-202... push 06 Jun 2026 05:34PM UTC web-flow github
86.38
See All Builds (886)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc