Bump the version to 2.1.0.
[mailpopbox.git] / mailpopbox.go
index 05cdc3765a759111315afdb5085f3ed2adf85197..62bbf71a34a03e4fb07cfa2a6d868f0e6f750b98 100644 (file)
@@ -20,6 +20,11 @@ func main() {
                os.Exit(1)
        }
 
+       if os.Args[1] == "version" {
+               fmt.Print(versionString)
+               os.Exit(0)
+       }
+
        configFile, err := os.Open(os.Args[1])
        if err != nil {
                fmt.Fprintf(os.Stderr, "config file: %s\n", err)
@@ -43,6 +48,8 @@ func main() {
                os.Exit(4)
        }
 
+       log.Info("starting mailpopbox", zap.String("hostname", config.Hostname))
+
        pop3 := runPOP3Server(config, log)
        smtp := runSMTPServer(config, log)