Mercurial > projects > sievemgr
comparison cmd/sievemgr/info.go @ 2:6db34a5344b8
Show server implementation in info output
author | Guido Berhoerster <guido+sievemgr@berhoerster.name> |
---|---|
date | Mon, 26 Oct 2020 15:32:20 +0100 |
parents | 0cd5a454dfb4 |
children | 4dff4c3f0fbb |
comparison
equal
deleted
inserted
replaced
1:0cd5a454dfb4 | 2:6db34a5344b8 |
---|---|
58 if err != nil { | 58 if err != nil { |
59 return err | 59 return err |
60 } | 60 } |
61 defer c.Logout() | 61 defer c.Logout() |
62 | 62 |
63 fmt.Println(net.JoinHostPort(host, port)) | 63 fmt.Printf("%s (%s)\n", net.JoinHostPort(host, port), |
64 c.Implementation()) | |
64 if c.SupportsRFC5804() { | 65 if c.SupportsRFC5804() { |
65 fmt.Println("RFC5804 supported") | 66 fmt.Println("RFC5804 supported") |
66 } | 67 } |
67 if c.SupportsTLS() { | 68 if c.SupportsTLS() { |
68 fmt.Println("STARTTLS supported") | 69 fmt.Println("STARTTLS supported") |