changeset 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 3cd182bff992
files cmd/sievemgr/info.go go.mod go.sum
diffstat 3 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cmd/sievemgr/info.go	Mon Oct 26 14:46:39 2020 +0100
+++ b/cmd/sievemgr/info.go	Mon Oct 26 15:32:20 2020 +0100
@@ -60,7 +60,8 @@
 	}
 	defer c.Logout()
 
-	fmt.Println(net.JoinHostPort(host, port))
+	fmt.Printf("%s (%s)\n", net.JoinHostPort(host, port),
+		c.Implementation())
 	if c.SupportsRFC5804() {
 		fmt.Println("RFC5804 supported")
 	}
--- a/go.mod	Mon Oct 26 14:46:39 2020 +0100
+++ b/go.mod	Mon Oct 26 15:32:20 2020 +0100
@@ -3,6 +3,6 @@
 go 1.14
 
 require (
-	go.guido-berhoerster.org/managesieve v0.0.0-20201026131555-3fe1614de42c
+	go.guido-berhoerster.org/managesieve v0.0.0-20201026142443-8413916df2be
 	golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897
 )
--- a/go.sum	Mon Oct 26 14:46:39 2020 +0100
+++ b/go.sum	Mon Oct 26 15:32:20 2020 +0100
@@ -1,5 +1,7 @@
 go.guido-berhoerster.org/managesieve v0.0.0-20201026131555-3fe1614de42c h1:4HErjjy83de5F6xWn9Fd+N31KDJh0h1jibO6n0Ye6lw=
 go.guido-berhoerster.org/managesieve v0.0.0-20201026131555-3fe1614de42c/go.mod h1:uvqvWGFO2zONQiEQuDNH37Mg2pM7gTsDZSXtBOSmj98=
+go.guido-berhoerster.org/managesieve v0.0.0-20201026142443-8413916df2be h1:pKZGpXqtVG/1d16ZzVMYzjXV09q1jPU+6BsdvVVVqZU=
+go.guido-berhoerster.org/managesieve v0.0.0-20201026142443-8413916df2be/go.mod h1:uvqvWGFO2zONQiEQuDNH37Mg2pM7gTsDZSXtBOSmj98=
 golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
 golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
 golang.org/x/crypto v0.0.0-20201016220609-9e8e0b390897 h1:pLI5jrR7OSLijeIDcmRxNmw2api+jEfxLoykJVice/E=