diff options
Diffstat (limited to 'modules/setting/incoming_email.go')
-rw-r--r-- | modules/setting/incoming_email.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/setting/incoming_email.go b/modules/setting/incoming_email.go index b6a637bccd..75337a312f 100644 --- a/modules/setting/incoming_email.go +++ b/modules/setting/incoming_email.go @@ -31,10 +31,8 @@ var IncomingEmail = struct { MaximumMessageSize: 10485760, } -func newIncomingEmail() { - if err := Cfg.Section("email.incoming").MapTo(&IncomingEmail); err != nil { - log.Fatal("Unable to map [email.incoming] section on to IncomingEmail. Error: %v", err) - } +func loadIncomingEmailFrom(rootCfg ConfigProvider) { + mustMapSetting(rootCfg, "email.incoming", &IncomingEmail) if !IncomingEmail.Enabled { return |