summaryrefslogtreecommitdiff
path: root/internal/templates/embed.go
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2022-07-18 10:56:09 +1000
committerGitHub <noreply@github.com>2022-07-18 10:56:09 +1000
commitdf016be29ea155c030d419937bf4bf8757ae3bf0 (patch)
tree1e086c07392b209094033c9146a234b3de25b336 /internal/templates/embed.go
parent38e3f741b72957997d1691b53507f1c353cc6886 (diff)
fix(notification): incorrect date header format (#3684)
* fix(notification): incorrect date header format The date header in the email envelopes was incorrectly formatted missing a space between the `Date:` header and the value of this header. This also refactors the notification templates system allowing people to manually override the envelope itself. * test: fix tests and linting issues * fix: misc issues * refactor: misc refactoring * docs: add example for envelope with message id * refactor: organize smtp notifier * refactor: move subject interpolation * refactor: include additional placeholders * docs: fix missing link * docs: gravity * fix: rcpt to command * refactor: remove mid * refactor: apply suggestions Co-authored-by: Amir Zarrinkafsh <nightah@me.com> * refactor: include pid Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
Diffstat (limited to 'internal/templates/embed.go')
-rw-r--r--internal/templates/embed.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/templates/embed.go b/internal/templates/embed.go
new file mode 100644
index 000000000..b20b467c0
--- /dev/null
+++ b/internal/templates/embed.go
@@ -0,0 +1,8 @@
+package templates
+
+import (
+ "embed"
+)
+
+//go:embed src/*
+var embedFS embed.FS