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

go-pkgz / email / 32199955332
93%
master: 93%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.8.0
DEFAULT BRANCH: master
Ran 19 Aug 2026 12:07AM UTC
Jobs 1
Files 3
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

18 Aug 2026 11:58PM UTC coverage: 91.99% (-0.2%) from 92.191%
32199955332

Pull #31

github

paskal
Format attachment file names into mime part headers safely

Previously, the file name went into the Content-Type name parameter by
plain string concatenation, so a name containing CR or LF ended the header
and injected part headers and a body of its own. Content-Disposition was
built with %q and escaped those, but its quoting was still wrong for names
holding a quote, a semicolon or non-ascii characters.

After this change, both headers are built with mime.FormatMediaType, which
quotes and RFC 2231 encodes the name, and a file name containing CR or LF
is rejected outright, which also keeps Content-ID safe.

The generated headers change shape for every attachment: parameters are no
longer quoted when they don't need to be, so tests assert file names from
the parsed mime tree instead of matching the serialized header text.
Pull Request #31: Format attachment file names into mime part headers safely

15 of 19 new or added lines in 1 file covered. (78.95%)

8 existing lines in 1 file now uncovered.

379 of 412 relevant lines covered (91.99%)

217.09 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
90.41
-0.17% email.go

Coverage Regressions

Lines Coverage ∆ File
8
90.41
-0.17% email.go
Jobs
ID Job ID Ran Files Coverage
1 32199955332.1 19 Aug 2026 12:07AM UTC 3
91.99
GitHub Action Run
Source Files on build 32199955332
  • Tree
  • List 3
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #31
  • PR Base - master (#32195979123)
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