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

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

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.8.0
DEFAULT BRANCH: master
Ran 19 Aug 2026 12:28AM 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

19 Aug 2026 12:27AM UTC coverage: 92.875% (+0.7%) from 92.191%
32201330356

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

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

378 of 407 relevant lines covered (92.87%)

219.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32201330356.1 19 Aug 2026 12:28AM UTC 3
92.87
GitHub Action Run
Source Files on build 32201330356
  • 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