Mercurial > projects > managesieve
diff managesieve.go @ 3:8413916df2be
Add method to query the implementation string
author | Guido Berhoerster <guido+managesieve@berhoerster.name> |
---|---|
date | Mon, 26 Oct 2020 15:24:43 +0100 |
parents | 6369453d47a3 |
children | f9bb517e9447 |
line wrap: on
line diff
--- 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"]