File: sieve-manage.el.html
This library provides an elisp API for the managesieve network protocol.
It uses the SASL library for authentication, which means it supports DIGEST-MD5, CRAM-MD5, SCRAM-MD5, NTLM, PLAIN and LOGIN methods. STARTTLS is not well tested, but should be easy to get to work if someone wants.
The API should be fairly obvious for anyone familiar with the managesieve protocol, interface functions include:
sieve-manage-open
open connection to managesieve server, returning a buffer to be
used by all other API functions.
sieve-manage-opened
check if a server is open or not
sieve-manage-close
close a server connection.
sieve-manage-listscripts
sieve-manage-deletescript
sieve-manage-getscript
performs managesieve protocol actions
and that's it. Example of a managesieve session in *scratch*:
(with-current-buffer (sieve-manage-open "mail.example.com")
(sieve-manage-authenticate)
(sieve-manage-listscripts))
=> ((active . "main") "vacation")
References:
draft-martin-managesieve-02.txt,
"A Protocol for Remotely Managing Sieve Scripts",
by Tim Martin.
Release history:
2001-10-31 Committed to Oort Gnus.
2002-07-27 Added DELETESCRIPT. Suggested by Ned Ludd.
2002-08-03 Use SASL library.
2013-06-05 Enabled STARTTLS support, fixed bit rot.
Defined variables (9)
sieve-manage-authenticator-alist | Definition of authenticators. |
sieve-manage-authenticators | Priority of authenticators to consider when authenticating to server. |
sieve-manage-client-eol | The EOL string we send to the server. |
sieve-manage-default-port | Default port number or service name for managesieve protocol. |
sieve-manage-default-stream | Default stream type to use for ‘sieve-manage’. |
sieve-manage-ignore-starttls | Ignore STARTTLS even if STARTTLS capability is provided. |
sieve-manage-log | Name of buffer for managesieve session trace. |
sieve-manage-server-eol | The EOL string sent from the server. |
sieve-manage-state | Managesieve state. |