internal/

directory
v0.1.0-rc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2026 License: BSD-3-Clause

Directories

Path Synopsis
Package app wires configuration, message, targets and delivery into one sendmail invocation.
Package app wires configuration, message, targets and delivery into one sendmail invocation.
Package backend holds the types shared by every delivery target: the Sender interface, target capabilities, the rendered payload and the classified delivery error.
Package backend holds the types shared by every delivery target: the Sender interface, target capabilities, the rendered payload and the classified delivery error.
discord
Package discord implements the discord target type: one execution of a channel webhook per message, with the attachments as files.
Package discord implements the discord target type: one execution of a channel webhook per message, with the attachments as files.
hook
Package hook implements the exec target type: one run of a program per message, with the message on its stdin and the envelope in its environment.
Package hook implements the exec target type: one run of a program per message, with the message on its stdin and the envelope in its environment.
ntfy
Package ntfy implements the ntfy target type: a JSON publish for the text and one more message per attachment, which ntfy allows one of.
Package ntfy implements the ntfy target type: a JSON publish for the text and one more message per attachment, which ntfy allows one of.
shoutrrr
Package shoutrrr implements the shoutrrr target type: one send per message through a service of github.com/nicholas-fedor/shoutrrr, chosen by the scheme of the URL.
Package shoutrrr implements the shoutrrr target type: one send per message through a service of github.com/nicholas-fedor/shoutrrr, chosen by the scheme of the URL.
slack
Package slack implements the slack target type through the Slack Web API: chat.postMessage for the text and the external upload methods for the attachments, which land in the thread of the message.
Package slack implements the slack target type through the Slack Web API: chat.postMessage for the text and the external upload methods for the attachments, which land in the thread of the message.
telegram
Package telegram implements the telegram target type: the Bot API methods sendMessage for the text and sendDocument for each attachment, the first one with the text as caption when it is short enough.
Package telegram implements the telegram target type: the Bot API methods sendMessage for the text and sendDocument for each attachment, the first one with the text as caption when it is short enough.
webhook
Package webhook implements the http target type: one request per message, POST unless configured otherwise, with the JSON document its template renders, or without a body for GET.
Package webhook implements the http target type: one request per message, POST unless configured otherwise, with the JSON document its template renders, or without a body for GET.
Package config loads and validates the mailcrier TOML configuration.
Package config loads and validates the mailcrier TOML configuration.
Package delivery renders a message for every target, sends it to all of them at once and turns the per-target outcomes into the process exit status.
Package delivery renders a message for every target, sends it to all of them at once and turns the per-target outcomes into the process exit status.
Package golden compares test output with golden files in txtar format: one file per fixture, one section per output.
Package golden compares test output with golden files in txtar format: one file per fixture, one section per output.
Package message reads the mail a caller pipes into sendmail and exposes the parts a notification needs: decoded headers, the text of the body in UTF-8 and the attachments.
Package message reads the mail a caller pipes into sendmail and exposes the parts a notification needs: decoded headers, the text of the body in UTF-8 and the attachments.
Package redact replaces registered secrets with a mask in everything the process logs.
Package redact replaces registered secrets with a mask in everything the process logs.
Package render turns a message into the text of one target with Go templates and fits that text into the target's length limit.
Package render turns a message into the text of one target with Go templates and fits that text into the target's length limit.
Package route selects the targets of a message and decides which messages are suppressed.
Package route selects the targets of a message and decides which messages are suppressed.
Package sendmail parses a sendmail command line: flags in getopt style, the mode selected by argv[0], and the recipients.
Package sendmail parses a sendmail command line: flags in getopt style, the mode selected by argv[0], and the recipients.
Package spool keeps messages on disk until every target has them.
Package spool keeps messages on disk until every target has them.
Package text escapes, measures and truncates text for the markup of each target.
Package text escapes, measures and truncates text for the markup of each target.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL