# HG changeset patch # User Guido Berhoerster # Date 1603722283 -3600 # Node ID 8413916df2be56bae8015e4e66f644871c27f28a # Parent 3fe1614de42c757fa9db02e40fc426672deb7db8 Add method to query the implementation string diff -r 3fe1614de42c -r 8413916df2be managesieve.go --- a/managesieve.go Mon Oct 26 14:15:55 2020 +0100 +++ b/managesieve.go Mon Oct 26 15:24:43 2020 +0100 @@ -184,6 +184,12 @@ return c, err } +// Implementation returns the name and version of the implementation as +// reported by the server. +func (c *Client) Implementation() string { + return c.capa["IMPLEMENTATION"] +} + // SupportsRFC5804 returns true if the server conforms to RFC 5804. func (c *Client) SupportsRFC5804() bool { _, ok := c.capa["VERSION"]