aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-07-03 14:08:18 +0800
committerUnknwon <u@gogs.io>2015-07-03 14:08:18 +0800
commitc47afdff58a5327c11730f8df75cbc3f0be35a77 (patch)
tree5da674249fe9b0473d9b10c765b3e23471af68a5 /modules/setting
parentc76ee1cf83d53d819e61a8d49a731189b32f5488 (diff)
downloadgitea-c47afdff58a5327c11730f8df75cbc3f0be35a77.tar.gz
gitea-c47afdff58a5327c11730f8df75cbc3f0be35a77.zip
add config options for HELO
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 3ce27b2e3b..48a5dd35a6 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -478,6 +478,8 @@ type Mailer struct {
Host string
From string
User, Passwd string
+ DisableHelo bool
+ HeloHostname string
SkipVerify bool
UseCertificate bool
CertFile, KeyFile string
@@ -512,6 +514,8 @@ func newMailService() {
Host: sec.Key("HOST").String(),
User: sec.Key("USER").String(),
Passwd: sec.Key("PASSWD").String(),
+ DisableHelo: sec.Key("DISABLE_HELO").MustBool(),
+ HeloHostname: sec.Key("HELO_HOSTNAME").String(),
SkipVerify: sec.Key("SKIP_VERIFY").MustBool(),
UseCertificate: sec.Key("USE_CERTIFICATE").MustBool(),
CertFile: sec.Key("CERT_FILE").String(),