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

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

Build:
Build:
LAST BUILD BRANCH: refs/tags/v0.8.0
DEFAULT BRANCH: master
Ran 19 Aug 2026 02:23AM 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 01:26AM UTC coverage: 92.875% (+0.7%) from 92.191%
32208384525

push

github

web-flow
Format attachment file names into mime part headers safely (#31)

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.

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

378 of 407 relevant lines covered (92.87%)

219.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32208384525.1 19 Aug 2026 02:23AM UTC 3
92.87
GitHub Action Run
Source Files on build 32208384525
  • Tree
  • List 3
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d08595b5 on github
  • Prev Build on 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