diff options
Diffstat (limited to 'internal/conf/static.go')
-rw-r--r-- | internal/conf/static.go | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/internal/conf/static.go b/internal/conf/static.go index cc305b9b..30bb4cb9 100644 --- a/internal/conf/static.go +++ b/internal/conf/static.go @@ -152,6 +152,33 @@ var ( EnableLoginStatusCookie bool LoginStatusCookieName string } + + // Email settings + Email struct { + Enabled bool + SubjectPrefix string + Host string + From string + User string + Password string + + DisableHELO bool `ini:"DISABLE_HELO"` + HELOHostname string `ini:"HELO_HOSTNAME"` + + SkipVerify bool + UseCertificate bool + CertFile string + KeyFile string + + UsePlainText bool + AddPlainTextAlt bool + + // Derived from other static values + FromEmail string `ini:"-"` // Parsed email address of From without person's name. + + // Deprecated: Use Password instead, will be removed in 0.13. + Passwd string + } ) // handleDeprecated transfers deprecated values to the new ones when set. @@ -178,4 +205,9 @@ func handleDeprecated() { Database.Password = Database.Passwd Database.Passwd = "" } + + if Email.Passwd != "" { + Email.Password = Email.Passwd + Email.Passwd = "" + } } |