Expand description
managesieve - parsing and generation of ‘managesieve’ communications protocol (RFC 5804) commands and responses.
§Usage
Commands can be generated in the correct form by constructing a Command
of the desired type, which can then be converted into a string and sent.
Response parsing is achieved by passing bytes received from the managesieve
server to the expected response_
function. It will either return data and
a Response
, Error::IncompleteResponse
if more bytes are expected to form a
complete response, or Error::InvalidResponse
if the server has responded
in a nonconforming manner.
It is possible to pipeline multiple managesieve commands, and receive a
stream of bytes comprising multiple responses. In this case, response_
functions return the remaining bytes after successfully parsing the first
response.
Structs§
Enums§
Functions§
- Parses text returned from the server in response to the CAPABILITY command. Returns list of capabilities and optional additional strings.
- Parses text returned from the server in response to the CHECKSCRIPT command.
- Parses text returned from the server in response to the DELETESCRIPT command.
- Parses text returned from the server in response to the GETSCRIPT command.
- Parses text returned from the server in response to the HAVESPACE command.
- Parses text returned from the server in response to the LISTSCRIPTS command. Returns list of scripts and a bool indicating if that script is the active script.
- Parses text returned from the server in response to the LOGOUT command.
- Parses text returned from the server in response to the NOOP command.
- Parses text returned from the server in response to the PUTSCRIPT command.
- Parses text returned from the server in response to the RENAMESCRIPT command.
- Parses text returned from the server in response to the GETSCRIPT command.
- Parses text returned from the server in response to the STARTTLS command. Returns list of capabilities and optional additional strings.
- Parses text returned from the server in response to the UNAUTHENTICATE command.