Skip to main content

ManageSieve client library for remotely managing Sieve scripts

Project description

Author: Hartmut Goebel <>
Version: 0.6
Copyright: 2003-2018 by Hartmut Goebel
Licence:Python Software Foundation License and GNU Public Licence v3 (GPLv3)

Sieve scripts allow users to filter incoming email on the mail server. The ManageSieve protocol allows managing Sieve scripts on a remote mail server. These servers are commonly sealed so users cannot log into them, yet users must be able to update their scripts on them. This is what for the “ManageSieve” protocol is. For more information about the ManageSieve protocol see RFC 5804.

This module allows accessing a Sieve-Server for managing Sieve scripts there. It is accompanied by a simple yet functional user application ‘sieveshell’.

Changes since 0.5

  • Add support for Python 3. Minimum required Python version is now Python 2.7.
  • Homepage is now hosted at
  • Documentation is extended and includes API documentation.
  • Security fix: No longer leak environment variable SIEVE_PASSWORD when displaying usage help.
  • Per default enforce secure transport. Suggested by Jan Zerebecki.
  • Add possibility to use username/password from the .netrc file. The order is: command line options -> environment variables -> .netrc file -> ask user. Thanks to Grégoire Détrez.
  • Fail if TLS is requested, but server doesn’t support TLS. Suggested by Jan Zerebecki.
  • Rework and enhance test-suite. Thanks to Matěj Cepl for nudging to proper pytest integration.
  • Lots if internal cleanup.

Requirements and Installation

managesieve requires

  • Python (tested 2.7 and 3.4—3.6, but newer versions should work, too), and
  • setuptools or pip for installation.

Not yet implemented

  • sieve-names are only quoted dump (put into quotes, but no escapes yet).


Based on from Ulrich Eck <> which is part of of ‘ImapClient’ (see, a Zope product.

Some ideas taken from imaplib written by Piers Lauder <> et al.

Thanks to Tomas ‘Skitta’ Lindroos, Lorenzo Boccaccia, Alain Spineux, darkness, Gregory Boyce and Grégoire Détrez for sending patches.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for managesieve, version 0.6
Filename, size File type Python version Upload date Hashes
Filename, size managesieve-0.6-py2.py3-none-any.whl (17.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size managesieve-0.6.tar.gz (54.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page