]>
src.bluestatic.org Git - mailpopbox.git/blob - mailpopbox.go
8 "github.com/uber-go/zap"
12 if len(os
.Args
) != 2 {
13 fmt
.Fprintf(os
.Stderr
, "Usage: %s config.json\n", os
.Args
[0])
17 configFile
, err
:= os
.Open(os
.Args
[1])
19 fmt
.Fprintf(os
.Stderr
, "config file: %s\n", err
)
24 if err
:= json
.NewDecoder(configFile
).Decode(&config
); err
!= nil {
25 fmt
.Fprintf(os
.Stderr
, "config file: %s\n", err
)
30 log
:= zap
.New(zap
.NewTextEncoder())
32 pop3
:= runPOP3Server(config
, log
)
33 smtp
:= runSMTPServer(config
, log
)