comparison 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
comparison
equal deleted inserted replaced
2:3fe1614de42c 3:8413916df2be
182 return c, &ConnClosedError{r.code, r.msg} 182 return c, &ConnClosedError{r.code, r.msg}
183 } 183 }
184 return c, err 184 return c, err
185 } 185 }
186 186
187 // Implementation returns the name and version of the implementation as
188 // reported by the server.
189 func (c *Client) Implementation() string {
190 return c.capa["IMPLEMENTATION"]
191 }
192
187 // SupportsRFC5804 returns true if the server conforms to RFC 5804. 193 // SupportsRFC5804 returns true if the server conforms to RFC 5804.
188 func (c *Client) SupportsRFC5804() bool { 194 func (c *Client) SupportsRFC5804() bool {
189 _, ok := c.capa["VERSION"] 195 _, ok := c.capa["VERSION"]
190 return ok 196 return ok
191 } 197 }