mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
df016be29e
* 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>
25 lines
494 B
Go
25 lines
494 B
Go
package notification
|
|
|
|
const (
|
|
fileNotifierMode = 0600
|
|
)
|
|
|
|
const (
|
|
smtpAUTHMechanismPlain = "PLAIN"
|
|
smtpAUTHMechanismLogin = "LOGIN"
|
|
|
|
smtpPortSUBMISSIONS = 465
|
|
|
|
smtpCommandDATA = "DATA"
|
|
smtpCommandHELLO = "EHLO/HELO"
|
|
smtpCommandSTARTTLS = "STARTTLS"
|
|
smtpCommandAUTH = "AUTH"
|
|
smtpCommandMAIL = "MAIL"
|
|
smtpCommandRCPT = "RCPT"
|
|
)
|
|
|
|
const (
|
|
fmtSMTPGenericError = "error performing %s with the SMTP server: %w"
|
|
fmtSMTPDialError = "error dialing the SMTP server: %w"
|
|
)
|