1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 09:37:02 +00:00

smtp: Use config.SMTP directly in Server #91

This commit is contained in:
James Hillyerd
2018-03-31 16:49:52 -07:00
parent acd48773da
commit 2c813081eb
4 changed files with 57 additions and 75 deletions

View File

@@ -3,6 +3,7 @@ package config
import (
"log"
"os"
"strings"
"text/tabwriter"
"time"
@@ -81,6 +82,7 @@ type Storage struct {
func Process() (*Root, error) {
c := &Root{}
err := envconfig.Process(prefix, c)
c.SMTP.DomainNoStore = strings.ToLower(c.SMTP.DomainNoStore)
return c, err
}