aboutsummaryrefslogtreecommitdiffstats
path: root/modules/setting/mailer.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-04-17 05:56:40 +0100
committertechknowlogick <matti@mdranta.net>2019-04-17 00:56:40 -0400
commit827ab6b75a70a3cd90033a4d49bb44c635dd3310 (patch)
tree4eeb03f67d96288dddedbca0215759c622e5b5b1 /modules/setting/mailer.go
parent84fd24246cd5565b9654bf752b9919df03e69271 (diff)
downloadgitea-827ab6b75a70a3cd90033a4d49bb44c635dd3310.tar.gz
gitea-827ab6b75a70a3cd90033a4d49bb44c635dd3310.zip
Add SUBJECT_PREFIX mailer config option (#6605)
* Add SUBJECT_PREFIX mailer config option * Add space between subject prefix and subject (Change from Gogs) Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/setting/mailer.go')
-rw-r--r--modules/setting/mailer.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/mailer.go b/modules/setting/mailer.go
index e627aef017..3101ed5452 100644
--- a/modules/setting/mailer.go
+++ b/modules/setting/mailer.go
@@ -21,6 +21,7 @@ type Mailer struct {
FromEmail string
SendAsPlainText bool
MailerType string
+ SubjectPrefix string
// SMTP sender
Host string
@@ -65,6 +66,7 @@ func newMailService() {
CertFile: sec.Key("CERT_FILE").String(),
KeyFile: sec.Key("KEY_FILE").String(),
IsTLSEnabled: sec.Key("IS_TLS_ENABLED").MustBool(),
+ SubjectPrefix: sec.Key("SUBJECT_PREFIX").MustString(""),
SendmailPath: sec.Key("SENDMAIL_PATH").MustString("sendmail"),
}