diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2022-07-18 10:56:09 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-18 10:56:09 +1000 |
| commit | df016be29ea155c030d419937bf4bf8757ae3bf0 (patch) | |
| tree | 1e086c07392b209094033c9146a234b3de25b336 /internal/configuration/schema/notifier.go | |
| parent | 38e3f741b72957997d1691b53507f1c353cc6886 (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/configuration/schema/notifier.go')
| -rw-r--r-- | internal/configuration/schema/notifier.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/configuration/schema/notifier.go b/internal/configuration/schema/notifier.go index 6bacf482b..00c45e8f7 100644 --- a/internal/configuration/schema/notifier.go +++ b/internal/configuration/schema/notifier.go @@ -20,7 +20,7 @@ type SMTPNotifierConfiguration struct { Identifier string `koanf:"identifier"` Sender mail.Address `koanf:"sender"` Subject string `koanf:"subject"` - StartupCheckAddress string `koanf:"startup_check_address"` + StartupCheckAddress mail.Address `koanf:"startup_check_address"` DisableRequireTLS bool `koanf:"disable_require_tls"` DisableHTMLEmails bool `koanf:"disable_html_emails"` TLS *TLSConfig `koanf:"tls"` @@ -39,7 +39,7 @@ var DefaultSMTPNotifierConfiguration = SMTPNotifierConfiguration{ Timeout: time.Second * 5, Subject: "[Authelia] {title}", Identifier: "localhost", - StartupCheckAddress: "test@authelia.com", + StartupCheckAddress: mail.Address{Name: "Authelia Test", Address: "test@authelia.com"}, TLS: &TLSConfig{ MinimumVersion: "TLS1.2", }, |
