From 7d5c69557e3a9ebc30d577d5fa7aa041cb611060 Mon Sep 17 00:00:00 2001 From: Hongcai Deng Date: Mon, 7 Sep 2015 13:11:18 +0800 Subject: [PATCH] add `FixedNotifyFrom` key to `Mailer` section --- modules/setting/setting.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 7711ce3eb..5ea966977 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -542,6 +542,7 @@ type Mailer struct { SkipVerify bool UseCertificate bool CertFile, KeyFile string + FixedNotifyFrom bool } type OauthInfo struct { @@ -579,6 +580,7 @@ func newMailService() { UseCertificate: sec.Key("USE_CERTIFICATE").MustBool(), CertFile: sec.Key("CERT_FILE").String(), KeyFile: sec.Key("KEY_FILE").String(), + FixedNotifyFrom:sec.Key("FIXED_NOTIFY_FROM").MustBool(), } MailService.From = sec.Key("FROM").MustString(MailService.User) log.Info("Mail Service Enabled")