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/middlewares/types.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/middlewares/types.go')
| -rw-r--r-- | internal/middlewares/types.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/middlewares/types.go b/internal/middlewares/types.go index 0e2f172e8..59cc95f77 100644 --- a/internal/middlewares/types.go +++ b/internal/middlewares/types.go @@ -14,6 +14,7 @@ import ( "github.com/authelia/authelia/v4/internal/regulation" "github.com/authelia/authelia/v4/internal/session" "github.com/authelia/authelia/v4/internal/storage" + "github.com/authelia/authelia/v4/internal/templates" "github.com/authelia/authelia/v4/internal/totp" "github.com/authelia/authelia/v4/internal/utils" ) @@ -40,6 +41,7 @@ type Providers struct { UserProvider authentication.UserProvider StorageProvider storage.Provider Notifier notification.Notifier + Templates *templates.Provider TOTP totp.Provider PasswordPolicy PasswordPolicyProvider } |
