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

go-pkgz / email
94%

Build:
DEFAULT BRANCH: master
Repo Added 11 Feb 2022 07:42PM UTC
Files 3
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 master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • attachment-and-message-fixes
  • attachment-filename-header-injection
  • batch-send
  • ci/go-version-from-go-mod
  • display-name-fix
  • feat/send-context
  • fix-ci-caching
  • helo-host
  • master
  • paskal/brush_up
  • paskal/shadow
  • refs/tags/v0.1.0
  • refs/tags/v0.1.1
  • refs/tags/v0.1.2
  • refs/tags/v0.2.0
  • refs/tags/v0.3.0
  • refs/tags/v0.4.0
  • refs/tags/v0.4.1
  • refs/tags/v0.5.0
  • refs/tags/v0.6.0
  • refs/tags/v0.7.0
  • refs/tags/v0.8.0
  • security-and-reliability-fixes

17 Nov 2026 07:09AM UTC coverage: 94.444% (+1.6%) from 92.875%
44036524980

push

github

web-flow
Add SendBatch to send several messages over one connection (#33)

* Limit the CI token to read access

The workflow set no permissions, so the job inherited the repository's
token permissions, which can include write access. Set contents: read
explicitly to prevent inherited write access and address the CodeQL
actions/missing-workflow-permissions warning.

* Replace interface{} with any

any is an alias of interface{}, so existing Logger implementations and
the generated mocks stay compatible.

* Add SendBatch to send several messages over one connection

Previously, Send ended the SMTP session after each message, including
when a client was supplied through the SMTP option, so a batch of
emails meant one session per message.

SendBatch reuses one connection, authenticating once when credentials
are configured and sending each valid message in its own transaction.
After a rejection by the server it continues only if RSET succeeds.
RSET comes from the new single-method SMTPResetter interface, which
smtp.Client implements; SMTPClient is unchanged, so existing
implementations keep compiling. A failed or unavailable reset, a
connection failure or a cancelled or expired context stops the rest
of the batch. BatchError reports the result of every message, and its
Is and As methods let errors.Is and errors.As look into it on Go 1.19,
which does not follow a multi-error Unwrap.

The authentication, transaction and QUIT steps of SendContext move
into helpers shared with SendBatch, without a change in its behaviour.

* Report the context error for the message in flight in SendBatch

Previously, cancelling the context while a message was in flight on a
connection SendBatch had opened closed that connection, and the
message and the rest of the batch failed with a closed network
connection error that did not match context.Canceled. A deadline
could do the same through the connection deadline, which is set to
the context's and can fire before ctx.Err reports it.

No... (continued)

141 of 142 new or added lines in 1 file covered. (99.3%)

510 of 540 relevant lines covered (94.44%)

174.02 hits per line

Relevant lines Covered
Build:
Build:
540 RELEVANT LINES 510 COVERED LINES
174.02 HITS PER LINE
Source Files on master
  • Tree
  • List 3
  • 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
44036524980 master Add SendBatch to send several messages over one connection (#33) * Limit the CI token to read access The workflow set no permissions, so the job inherited the repository's token permissions, which can include write access. Set contents: read exp... push 17 Nov 2026 07:10AM UTC web-flow github
94.44
42466198885 batch-send Remove a comment from the in-flight test server Pull #33 08 Nov 2026 09:16AM UTC paskal github
94.44
42466202658 batch-send Remove a comment from the in-flight test server Pull #33 08 Nov 2026 09:14AM UTC paskal github
94.44
42462550650 batch-send Keep SMTP rejections when the context ends A message the server rejected just as the context was cancelled or its deadline passed was reported with the context error, preserving the reply only as text and hiding its *textproto.Error from errors.A... Pull #33 08 Nov 2026 08:21AM UTC paskal github
94.41
42376391897 batch-send Add SendBatch to send several messages over one connection Previously, Send ended the SMTP session after each message, including when a client was supplied through the SMTP option, so a batch of emails meant one session per message. SendBatch re... Pull #33 07 Nov 2026 01:19PM UTC paskal github
93.87
41331228511 master Take the CI Go version from go.mod CI pinned its Go version separately from go.mod. It now reads the major and minor version from the go directive and installs the latest patch release of it. push 01 Nov 2026 05:24PM UTC umputun github
92.87
41298863983 ci/go-version-from-go-mod Take the CI Go version from go.mod CI pinned its Go version separately from go.mod. It now reads the major and minor version from the go directive and installs the latest patch release of it. Pull #32 01 Nov 2026 10:46AM UTC paskal github
92.87
41297894595 ci/go-version-from-go-mod Take the CI Go version from go.mod CI pinned its Go version separately from go.mod. It now reads the major and minor version from the go directive and installs the latest patch release of it. push 01 Nov 2026 10:32AM UTC paskal github
92.87
41297191391 ci/go-version-from-go-mod Take the CI Go version from go.mod setup-go now reads the Go version from go.mod through go-version-file, so CI uses the version the module declares and there is no second place to update. push 01 Nov 2026 10:22AM UTC paskal github
92.87
32208384525 refs/tags/v0.8.0 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 bod... push 19 Aug 2026 02:23AM UTC web-flow github
92.87
See All Builds (110)
  • Repo on GitHub
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