]>
src.bluestatic.org Git - mailpopbox.git/blob - mailpopbox.go
10 if len(os
.Args
) != 2 {
11 fmt
.Fprintf(os
.Stderr
, "Usage: %s config.json\n", os
.Args
[0])
15 configFile
, err
:= os
.Open(os
.Args
[1])
17 fmt
.Fprintf(os
.Stderr
, "config file: %s\n", err
)
22 if err
:= json
.NewDecoder(configFile
).Decode(&config
); err
!= nil {
23 fmt
.Fprintf(os
.Stderr
, "config file: %s\n", err
)
28 pop3
:= runPOP3Server(config
)
29 smtp
:= runSMTPServer(config
)